Prevent file move if file doesn't exist

Created on 6 November 2023, over 1 year ago

In some cases, when creating the entity with the configured file field, we don't want to move the file. For example, when we migration media or nodes with files and the files need to stay in the location they are.

The problem is that the filefield_paths_filefield_paths_process_file() tries to move the file even if the file is not yet there on the system, which crashes.

So it should check if the file is there before trying to move it.

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

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