Skip to content

[Features]Prevent duplicate document uploads in the same collection #1222

@earayu

Description

@earayu

Background

Currently, the system allows uploading multiple identical documents to the same collection, which can lead to data redundancy and storage waste. There is no mechanism in place to detect and prevent duplicate files.

Proposal

Implement duplicate detection for document uploads within the same collection using one of the following methods:

  • Filename comparison: Check if a file with the same name already exists in the collection
  • MD5 hash comparison: Calculate and compare MD5 checksums to detect identical file content

When a duplicate is detected, the system should:

  1. Display a clear error message to the user
  2. Prevent the upload from completing
  3. Optionally provide options to replace the existing file or rename the new one

This feature will help maintain data integrity and optimize storage usage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions