[wp-trac] [WordPress Trac] #38909: `wp.uploadFile` ignores `overwrite` parameter
WordPress Trac
noreply at wordpress.org
Mon Jul 29 13:40:16 UTC 2019
#38909: `wp.uploadFile` ignores `overwrite` parameter
--------------------------+----------------------
Reporter: bhabba | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: XML-RPC | Version: 4.4
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by desrosj):
* keywords: reporter-feedback close =>
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Old description:
> 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/
New description:
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/
--
Comment:
Thanks for taking the time to follow up with more information, @bhabba.
I'll close it out.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38909#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list