[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
Wed Jul 25 23:07:31 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 markoheijnen):

 Looked into the issue more and wp_upload_bits is the right method to use
 and obvious it doesn't has wp_handle_upload_prefilter. It does has the
 filter: wp_upload_bits.

 #19121 should fix this issue the correct way: add a filter to
 wp_unique_filename.

 Maybe we should remove sanitize_file_name in the mw_newMediaObject. So it
 doesn't fire up twice.

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


More information about the wp-trac mailing list