Drupal 8.9.6. The status is still temporary even though the file is in use
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | filefield_paths-set_permanent-3175118-5.patch | 622 bytes | jstoller |
| #2 | filefield_paths-set_permanent-3175118-0.patch | 588 bytes | Milosavlevski |
| Opera Zrzut ekranu_2020-10-06_102814.png | 53.92 KB | fm365pl |
Issue fork filefield_paths-3175118
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Milosavlevski commentedLooks like a race condition,
$file->save()is called withinfile_move()while file's status is still temporary.Comment #3
fm365pl commentedThank you very much. It works.
Comment #4
miiimooo+1 for committing this - also see #3415187: File is renamed but is Temporary (Pantheon Live Environments)
Tested with Drupal 10.4 and filefield_paths 1.0.0-beta8
Many thanks @Milosavlevski
Comment #6
jstollerHere's an updated patch for 8.x-1.0-beta8. The original wouldn't apply.
Comment #8
jstollerMerge request created against 8.x-1.x-dev.
Comment #9
volegerFixed, thanks. Will be added in the next release.