[wp-trac] [WordPress Trac] #17604: wp.uploadFile overwrite doesn't work

WordPress Trac wp-trac at lists.automattic.com
Sun May 29 10:27:21 UTC 2011


#17604: wp.uploadFile overwrite doesn't work
--------------------------+-----------------------------
 Reporter:  M66B          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Removing the following lines from the function ''mw_newMediaObject'' file
 ''class-wp-xmlrpc-server.php'' solves the problem:

 {{{
 $filename = preg_replace('/^wpid\d+-/', '', $name);
 $name = "wpid{$old_file->ID}-{$filename}";
 }}}

 Why are these lines there anyway? overwrite is overwrite.

 This, presumably, bug exists in WP 3.1 too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17604>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list