Problem/Motivation
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
cilefen commented"File (Field) Paths" isn't an option in the File System configuration for a default Drupal installation. Are there additional file system modules needed to exhibit this bug?
Comment #3
superfedya commentedOh, yes, it's related to filefield_paths module: https://www.drupal.org/project/filefield_paths
Comment #4
cilefen commentedWe could have moved this there.
Comment #5
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.