Prevent duplicates

Created on 23 October 2020, over 4 years ago
Updated 17 March 2023, almost 2 years ago

Problem/Motivation

Add a checkbox in the configuration 'skip existing files'.
If checked then while bulk uploading, items should be skipped if a file with the same filename already exists

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States j. ayen green

    DOES media_duplicates work in conjunction with this module, i.e. will it prevent duplicates being created during a bulk upload?

    If not, I think the ability to use some method, given a folder, whether file name or checksum would be great. One use case of the bulk upload is that people have media organized into various folders by some category, and do not want them put in year_month folders, as that does not make them easy to find at all. So, once the bulk upload of existing media in their existing folders has completed, what happens when more images are added to those folders? That's when it becomes important to be able to upload from a folder and either filter based on date added being after a certain date or have some means to avoid the previous items from being added again.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    @flyke or @ j. ayen green would you able able to test these work together?

  • First commit to issue fork.
  • πŸ‡¬πŸ‡§United Kingdom the_g_bomb

    FYI: I have installed the media_duplicates module and it doesn't seem to work with media_bulk_upload as you are still able to upload media while duplicates exist

    When using the regular media upload only, the new module throws a form error which stops you creating a new media item while the same file exists, so there would need to be an extra step to ensure the bulk upload continues to process the other media entities after the duplicate is reached.

Production build 0.71.5 2024