File (Field) Paths module: Inserted temporary image has broken path after saving

Created on 1 November 2023, 8 months ago
Updated 27 November 2023, 7 months ago

Problem/Motivation

Inserting an uploaded (unsaved) image has a temporary path, which should be rewritten upon node saving, but remains broken.
D10.1.6 + filefield_path + insert + ckeditor 4

Steps to reproduce

  1. create an image field with custom filefield_path
  2. on node create form upload an image and insert it anywhere
  3. save the node and the image url remains the temporary which is broken

Source image at public://filefield_paths/testimage.jpg not found while trying to generate derivative image at public://styles/nodeimg/public/filefield_paths/testimage.jpg.

It's a filefield_path related issue, but we can leave this open for the others to find it.

Related issue: https://www.drupal.org/project/filefield_paths/issues/2974468 🐛 CKEditor Image Insert with FFP not (quite) working Active

Feature request
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nitrocad
  • Issue was unassigned.
  • Thanks for creating the ticket.

    Since this issue is related to another third-party module, it would be a new feature, rather than a bug in Insert.

    The purpose of the Insert module is to provide client-side functionality easing placing an uploaded image in a text field/editor. Adding manipulations at the time of saving a node is out of scope for the Insert base module. That said, I could imagine a sub-module to Insert that would have the Insert core module and File (Field) Paths as dependencies, which would then apply the path alteration upon saving the node. (Or even just manipulate the paths provided by File (Field) Paths client-side, so the designated paths of the uploaded files would already be placed by Insert before saving the node.)

    However, I regard this more an issue to be solved by File (Field) Paths itself as per the linked issue 🐛 CKEditor Image Insert with FFP not (quite) working Active , because the circumstance of paths being temporary until saving the node already exists in File (Field) Paths without using Insert, it just becomes more prominent by using Insert and other modules similar to Insert would also be affected by the behaviour of File (Field) Paths—I can see there is a patch on the linked issue. It would be best to be solved in File (Field) Paths.

Production build 0.69.0 2024