File uri doesn't get updated on programmatically saved files

Created on 26 September 2024, about 2 months ago

When you save a file programmatically and add it to a file field with the file field path setting configured, the originale file uri doesn't get updated when the file uri is different from the file uri set in filefield_paths_filefield_paths_process_file.
I discovered this by creating a filename with a timestamp, because there was as slight difference in time between saving the file and saving the referencing entity, I think updating the file uri in filefield_paths_filefield_paths_process_file on the original file entity would solve this issue.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium kensae

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024