[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 Mar 11 23:26:12 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 archon810):
Finally got around to doing it - great idea about the server name.
However, my code doesn't appear to be doing anything - I believe it could
be due to using xmlrpc to post/upload. If so, why is there such a
discrepancy and how can it be avoided/worked around?
My code:
{{{
function my_upload_prefilter($file) {
$file['name'] = "server." . $file['name'];
return $file;
}
add_filter('wp_handle_upload_prefilter', 'my_upload_prefilter');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20057#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list