File is renamed but is Temporary (Pantheon Live Environments)

Created on 17 January 2024, 5 months ago

Problem/Motivation

On Drupal 10.1 I have noticed that video files uploaded to a file field with an ffp configuration stay "Temporary", even though they are renamed and moved to the correct location.
Symptom of this are log entries

Did not delete temporary file "public://2024-01/2024-01-05-102920169213_103037969025_2_750kps.mp4" during garbage collection because it is in use by the following modules: file.

Steps to reproduce

I could only reliably reproduce this in Pantheon live environments. Changing the temp scheme from `public://filefield_paths` to `private://filefield_paths` did not fix the issue

I tested the patch in πŸ› Detection of source and temporary scheme is wrong in filefield_paths_filefield_paths_process_file() Needs review but didn't make any difference

πŸ› Bug report
Status

Active

Component

Code

Created by

miiimooo Europe

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

Comments & Activities

Production build 0.69.0 2024