[wp-trac] [WordPress Trac] #38909: `wp.uploadFile` ignores `overwrite` parameter

WordPress Trac noreply at wordpress.org
Wed Nov 23 01:59:20 UTC 2016


#38909: `wp.uploadFile` ignores `overwrite` parameter
--------------------------+-----------------------------
 Reporter:  bhabba        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `overwrite` parameter of the XMLRPC method `wp.uploadFile` seems to be
 ignored, files are never overwritten in Wordpress 4.6.1. If the file
 already exists, a `-` plus a number starting with `1` is appended when
 uploaded again.

 This has already been an issue some time ago (#17604), then got fixed but
 was reintroduced in Wordpress 4.4 according to this support thread:
 https://wordpress.org/support/topic/xmlrpc-uploadfile-overwrite/

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38909>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list