[wp-trac] [WordPress Trac] #38909: `wp.uploadFile` ignores `overwrite` parameter
WordPress Trac
noreply at wordpress.org
Thu Jun 20 13:40:55 UTC 2019
#38909: `wp.uploadFile` ignores `overwrite` parameter
-------------------------------------+------------------------------
Reporter: bhabba | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 4.4
Severity: normal | Resolution:
Keywords: reporter-feedback close | Focuses:
-------------------------------------+------------------------------
Changes (by desrosj):
* keywords: => reporter-feedback close
* version: 4.6.1 => 4.4
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:
Hi @bhabba,
Welcome to Trac! My apologies that it took so long to receive a response.
You are correct that [34578] removed support for this parameter, but I am
not able to find where it was re-added. Are you able to help me by
pointing to where it was re-added?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38909#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list