Problem/Motivation
Drupal 11.
Problem with images in filefield. I can attach and see the images, but not in the preview (system generated thumbnail) when File (Field) Paths settings is temporary://.
The image path is like: /system/temporary?file=filename.jpeg and it's not valide. My temp folder is /tmp with appropriated chmod (the image file and folders are actually created in this folder).
This issue affected also the images generated by the module Insert.
With the public:// or private:// everything works fine. But not with temporary://.
In the event log I see:
page not found: http://mysiteurl.com/system/temporary?file=styles%2Fcke_media_resize_med...
Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "" at FileDownloadController.php line 85
Steps to reproduce
Choice temporary:// in File System, File (Field) Paths.
Add the image in filefield type - image and look at miniature (auto-generated thumbnail).
I tried Apache and Openliteserver.
Any idea how to fix it?
Comments
Comment #2
volegerPlease collaborate with the rest of the contributors in the initially posted issue #2946034: File upload preview broken
Thanks
Comment #3
liam morlandI had a problem like this as was able to solve it by setting
filefield_paths.settings:temp_locationtoprivate://filefield_paths. It had previously beentemporary://filefield_paths.