[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 03:05:58 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 dd32):

 I completely understand your issue, and I completely understand that
 99.95% of users will never need such a function, While the performance
 benefits of simply checking the disk are minimal over checking the
 database, checking the filesystem is more foolproof for the majority of
 users.

 You can't get away from relying on a plugin or two(..or 5) in WordPress,
 Unless a feature is required for a large percentage of Installations, it's
 plugin material. If you  don't want to rely on a 3rd party plugin, roll
 your own to serve your purpose, it's a trivial matter to add a filter to
 the unique filename checking procedure to also check the database, or to
 check with the other servers in the cluster to see if they have that file.

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


More information about the wp-trac mailing list