You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Media created via REST that have a filename that is already in use get assigned the same filename in Fedora and other Drupal filesystems. This can be seen in the database table below in the entries with fid 36 and 40. This is because REST bypasses the "File directory" settings in the media file configuration (as configured at e.g. admin/structure/media/manage/image/fields/media.image.field_media_image).
As entries 44 and 48 show, when a media file is uploaded via the Drupal GUI, Drupal renames the file with a suffix (_0 in entry 48) in order to not make it overwrite the existing binary resource's URL in Fedora. URIs on the Drupal public filesystem are also overwritten, so this issue is not specific to Fedora.
The text was updated successfully, but these errors were encountered:
mjordan
changed the title
A media with the same filename as an existing media overwrites the resource in Fedora
A media with the same filename as an existing media overwrites existing file URI
Mar 30, 2021
Media created via REST that have a filename that is already in use get assigned the same filename in Fedora and other Drupal filesystems. This can be seen in the database table below in the entries with
fid
36 and 40. This is because REST bypasses the "File directory" settings in the media file configuration (as configured at e.g.admin/structure/media/manage/image/fields/media.image.field_media_image
).As entries 44 and 48 show, when a media file is uploaded via the Drupal GUI, Drupal renames the file with a suffix (
_0
in entry 48) in order to not make it overwrite the existing binary resource's URL in Fedora. URIs on the Drupal public filesystem are also overwritten, so this issue is not specific to Fedora.The text was updated successfully, but these errors were encountered: