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

superfedya created an issue. See original summary.

voleger’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2946034: File upload preview broken

Please collaborate with the rest of the contributors in the initially posted issue #2946034: File upload preview broken
Thanks

liam morland’s picture

I had a problem like this as was able to solve it by setting filefield_paths.settings:temp_location to private://filefield_paths. It had previously been temporary://filefield_paths.