-
Notifications
You must be signed in to change notification settings - Fork 6
Cannot add images when 'multiple images per item' is checked #50
Comments
Can you add the response of the ajax upload? In Google Chrome, you can find it by going to your network tab, and adding an image. A new entry should appear. If you click on it, you can choose too watch the response. This could help me a lot in debugging the source of the issue. |
Complete response: https://gist.github.com/KoenHeye/2f2b8e79b937d7b6aec6 A SpoonThumbnailException occurs |
Thx, I'll look at it this weekend. |
@KoenHeye I can't reproduce this on my machine. Is the image you sent smaller then 100x100 pixels? It could also be a Windows issue. Have you ever had trouble with SpoonThumbnail on a Windows machine? |
Hello @WouterSioen, I just found some time to do more tests. So my apologies for the late response. The response mentioned previously, was for a file of 40kb. When uploading a larger file (> 1MB), I got the response: {"error":"Server error. Uploads directory isn't writable or executable.","num":6,"index":0} I checked out possible access restrictions on the uploads directory frontend\files\basic_module but everything looked ok. I noticed that the error gets generated in qqFileUploader.php (library\external\qqFileUploader.php). Perhaps use another version for the qqFileUploader.php: https://github.com/Widen/fine-uploader-server/blob/master/php/traditional/handler.php I'll test this out in my Windows environment. |
For testing purposes, I created a basic module with 2 fields (title and description) and checked 'multiple images per item' before generating the module.
I then installed the module on a clean Fork CMS 3.6.6 installation and tried adding an item with image.
Unfortunately the image doesn't seem to get uploaded at all. The page shows a javascript error:
Ajax call that gets triggered: POST /backend/ajax.php?fork%5Bmodule%5D=basic_module&fork%5Baction%5D=upload&qqpartindex=0&qqpartbyteoffset=0&qqchunksize=637&qqtotalparts=1&qqtotalfilesize=637&qqfilename=secondarytile.png&qquuid=205660c6-700d-4363-b8ea-6f4aae19826b&qqfile=secondarytile.png HTTP/1.1
Note: In a module with a separate image field, the upload works. But I really need multiple images!
The text was updated successfully, but these errors were encountered: