[wp-trac] [WordPress Trac] #20057: Media upload for multi-webserver setups introduces a nasty race condition that could corrupt uploaded files

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 19 04:09:14 UTC 2012


#20057: Media upload for multi-webserver setups introduces a nasty race condition
that could corrupt uploaded files
--------------------------+------------------------------
 Reporter:  archon810     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.3.1
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 dd32]:
 > There's a filter on the unique filename handler (wp_unique_filename() in
 wp-admin/includes/file.php from memory) which would allow you to check the
 database for filename collisions (the filepath should be stored as a meta
 field for each attachment).

 `wp_unique_filename()` doesn't seem to have a filter: #19121

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20057#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list