zaviagodev / frappe

MIT License
0 stars 1 forks source link

Prevent Duplicate File Transactions in File Manager DocType #78

Open John-zaviago opened 9 months ago

John-zaviago commented 9 months ago

Issue: Duplication of File Entries in File Manager

We have identified a functional issue within our document management process. When users attach a file to any DocType using the 'Attachments' section and select a file from the library, the system creates a new file transaction for the already existing file in the database. This behavior leads to unnecessary duplication of file entries, as observed in the File Manager DocType at the ../app/file path.

Steps to Reproduce

  1. Go to any DocType and click on 'Attachments'.
  2. In the modal, select 'Library' and choose an existing file (e.g., 'iPhone_15_Plus_Pink_2-square_medium.jpg').
  3. Click 'Upload'.
  4. Navigate to the File Manager DocType at ../app/file.
  5. Observe multiple entries for the same file, indicating duplication.

Expected Behavior

The system should reference the existing file in the database without creating a new file transaction when the same file is uploaded to a DocType.

Goals

Action Items

Importance

Addressing this issue is critical for maintaining a clean and efficient file management system, preventing data redundancy, and optimizing database storage.

Request for Resolution

Please prioritize the investigation and resolution of this issue to enhance our document management practices and uphold the integrity of our data management system.

Thank you for your prompt attention to this matter and your dedication to continuous system improvement.

John-zaviago commented 9 months ago

@chomchuen can you continue this tasks with @umer2001