Open klonos opened 8 months ago
...clearing caches and running cron does not fix the problem above. Perhaps it relies on the garbage collection, and the file is removed after 6 hours (I'll check again).
This may be related to why with hero block with background, removing the background doesn't really remove the file. There is no replace file option. Adding the replacement file is renamed because the original file had not been removed. I thought I created an issue?
Description of the bug
When replacing a managed file with a different one with identical filename, the original file is not really replaced.
Steps To Reproduce
To reproduce the behavior:
card3-organize.png
orcard2-card.png
orcard1-layout.png
.admin/content/files
and depending on the filename you chose in the previous step, click the "Manage" button of the respective file in the "Manage files" list.card3-organize_0.png
(orcard2-card_0.png
orcard1-layout_0.png
) instead of replacing the original file and keeping the same file name 👎🏼admin/content/files
and click "Manage" for the file you replaced.Some additional UX confusion:
admin/structure/file-types/settings
.Actual behavior
admin/content/files
👎🏼Expected behavior
Additional information
Drupal has similar odd UX (see https://www.drupal.org/project/drupal/issues/2648816 and related issues), which can be addressed by means of modules like these:
https://www.drupal.org/project/media_entity_file_replace