Comments (7)
Hi,
I cannot help you according to your pure explanation. Could you give me more information about scenario, any screenshots and logs, file information?
from yii2-attachments.
Hi,
thanks for your answer, here is what reproduces the issue:
- Multiple Upload = false
- Upload single file - thumb is getting created
- in temporary upload folder, the uploaded file is written
- by clicking upload - a new temporary - empty folder is getting created the "first" stays in folder system
- frontend -> fails with message as described above
- the temporary folders keep within the server file system
- no record written to attachfile table
Browser Logs don't show any error message...
I have a docker stack with centos 7 - everything else runs fine within the machine... I can upload images for a gallery fine...
Thanks Philipp
from yii2-attachments.
Я тоже частично столкнулся с такой порблемой, сценарий таков:
- Выбираем файл для загрузки, он появляется в форме
- Нажимаю кнопку в футере картинки "Загрузить файл", загрузка проходит нормально
- Нажимаю кнопку отправки формы, вылетает сообщение "No valid data available for upload.", форма не прошла валидацию, поле подсвечивается красным
- Жму сабмит повторно, форма так же не проходит валидацию, но страница обновляется, фото прикрепляется...
В чем может быть проблема?
from yii2-attachments.
while I don't change the image,then can't submit the form.how to resolve? thank you!
from yii2-attachments.
I'm having the same issue. This apparently has to do with some recent changes because I was able to upload files back in July. There are no messages if any kind relating to the upload in runtime/app.log. I have tried saving the file in various formats; it does not help resolve the issue. My common/config/main.php looks like this:
'attachments' => [
'class' => nemmo\attachments\Module::className(),
'tempPath' => '@app/uploads/temp',
'storePath' => '@app/uploads/store',
'rules' => [ // Rules according to the FileValidator
'maxFiles' => 10, // Allow to upload maximum 3 files, default to 3
'mimeTypes' => [
'application/excel',
'application/msword',
'application/pdf',
'application/x-pdf',
'application/x-visio',
'audio/mpeg',
'image/gif',
'image/jpeg',
'image/png',
'image/svg+xml',
'text/plain',
],
'maxSize' => 1024 * 1024 * 1024
],
'tableName' => 'attachments' // Optional, default to 'attach_file'
],
from yii2-attachments.
I also tried uploading a PNG with the same results.
from yii2-attachments.
The good news is that the extension dlds/yii2-attachments works just fine without any errors. Unfortunately, it's not quite as full-featured as the nemmo extension, but unlike the nemmo extension, it does work.
from yii2-attachments.
Related Issues (20)
- Thumbnail style view HOT 3
- How to add dynamic location
- when uploaded file has no extension upload failes (type cannot be empty in model)
- array_slice() expects parameter 1 to be array, object given HOT 4
- Problem when using AR in console HOT 1
- AttachmentsInput and AttachmentsTable do not display
- Configuration of migration HOT 1
- Failed to hide initialPreview
- Event afterUpload
- Yii2 attachment module not found
- How to get the url to the already uploaded image HOT 1
- How to copy (duplicate) attachments from one model to another?
- Possibility of attaching files to the model with possible errors
- Open file instead of download HOT 1
- Replace saving short model name with full
- Problem with drag & drop with new version of fileinput
- Calling multiple saves of the model on same request raises Exception
- 404 page not found .....?r=attachments%2Ffile%2Fupload
- Latest version requires php 8.0 functionality
- Lastest Version Need Bootstrap5 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yii2-attachments.