[wp-trac] [WordPress Trac] #60345: Add duplicate checking for uploaded attachments

WordPress Trac noreply at wordpress.org
Thu Jan 25 16:39:34 UTC 2024


#60345: Add duplicate checking for uploaded attachments
----------------------------------------+----------------------------------
 Reporter:  joedolson                   |      Owner:  (none)
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Media                       |    Version:
 Severity:  normal                      |   Keywords:  phase-3-media-triage
  Focuses:  javascript, administration  |
----------------------------------------+----------------------------------
 It can be very difficult to tell whether you've already added a given
 document or image to your media library if it's no longer in recent items.
 The lack of sorting or filtering makes specific difficult to locate.

 Based on a
 [https://wordpress.slack.com/archives/C02SX62S6/p1706115251959409
 conversation on duplicate detection in #core-media], we think that a
 starting point for this is to hash the meta data for an attachment at the
 time of upload and store that as attachment meta.

 We could then check for that hash value before uploading a new document,
 and prompt the user to use the old attachment if it already exists.

 The specific meta data would probably need to vary depending on the type
 of attachment.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60345>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list