WordPress.org

Make WordPress Core

Opened 23 months ago

Last modified 9 months ago

#42839 new feature request

wp_remote_post should support multipart uploads

Reported by: calin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: HTTP API Keywords:
Focuses: Cc:
PR Number:

Description

Currently wp_remote_post doesn't support multipart uploads (file uploads). Because of this many plugin authors need to workaround this by implementing their own way to upload files remotely.

Attachments (2)

multipart_post.diff (224 bytes) - added by calin 23 months ago.
wp_remote_multipart.diff (2.3 KB) - added by calin 23 months ago.

Download all attachments as: .zip

Change History (8)

#1 @dd32
23 months ago

  • Type changed from enhancement to feature request

Hi @calin,

It appears the diff you submitted isn't a diff, but rather the output from attempting to apply a diff, did you attach the wrong file?

Please note that we use the Requests library for WP_HTTP currently, please verify that a feature exists within that library before proposing it's usefulness inside WordPress, and file any enhancement requests for that library directly on the Requests bug tracker.

#2 @calin
23 months ago

@dd32, yep, wrong file. Here's the proper one.

#3 @dd32
23 months ago

Thanks for that @calin

However, I don't want to merge wp_remote_multipart.diff into WordPress - Can you open an upstream ticket for Requests to add that support directly?
If we're going to add support for this, I want to see it in the actual library rather than implementing extras around it.

#4 @calin
23 months ago

Yep, I'll do that.

#5 @dd32
22 months ago

#43011 was marked as a duplicate.

#6 @pento
9 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.