Open klonos opened 10 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?
I experienced a similar problem the other night. I uploaded a bunch of images using the wrong file set. I thought I would be able to simply replace them with the correct ones, but it did not work at all. I had to delete the original image entity and create a new one.
I know that this is not exactly the same problem and that I have not provided steps to reproduce my problem yet. I will try to do so soon. But, it was a very frustrating problem and seems like it's related to this one. I need to figure out how it's related.
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