Make WordPress Core

Opened 10 years ago

Closed 7 years ago

#38909 closed defect (bug) (invalid)

`wp.uploadFile` ignores `overwrite` parameter

Reported by: bhabba Owned by:
Priority: normal Milestone:
Component: XML-RPC Version: 4.4
Severity: normal Keywords:
Cc: Focuses:

Description (last modified by desrosj)

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/

Change History (3)

#1 follow-up: @desrosj
7 years ago

  • Description modified (diff)
  • Keywords reporter-feedback close added
  • Version 4.6.1 → 4.4

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?

Marking as a close candidate, as it appears support for overwrite was never re-added.

Last edited 7 years ago by desrosj (previous) (diff)

#2 in reply to: ↑ 1 @bhabba
7 years ago

Replying to desrosj:

My apologies that it took so long to receive a response.

Well, I don't use WordPress anymore these days... (cue: ​Hugo)

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?

Nope. I did a quick search (google) but couldn't find any relevant changes...

Marking as a close candidate, as it appears support for overwrite was never re-added.

Maybe it was never re-added and I got it wrong (I only thought so because of ​this support thread opened by @demienyu). As far as I'm concerned, you can close this ticket.

Best regards!

#3 @desrosj
7 years ago

  • Description modified (diff)
  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Thanks for taking the time to follow up with more information, @bhabba. I'll close it out.

Note: See TracTickets for help on using tickets.