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

superfedya created an issue. See original summary.

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -images, -temporary +Needs steps to reproduce

"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?

superfedya’s picture

Oh, yes, it's related to filefield_paths module: https://www.drupal.org/project/filefield_paths

cilefen’s picture

Project: Drupal core » File (Field) Paths
Version: 11.1.x-dev » 8.x-1.x-dev
Component: field system » Code
Status: Postponed (maintainer needs more info) » Closed (duplicate)
Related issues: +#3500545: Images in filefield and temporary file system

We could have moved this there.

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.