Make WordPress Core

Opened 7 years ago

Last modified 5 years ago

#42839 new feature request

wp_remote_post should support multipart uploads

Reported by: calin's profile calin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: HTTP API Keywords:
Focuses: Cc:

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 7 years ago.
wp_remote_multipart.diff (2.3 KB) - added by calin 7 years ago.

Download all attachments as: .zip

Change History (9)

@calin
7 years ago

#1 @dd32
7 years 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
7 years ago

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

#3 @dd32
7 years 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
7 years ago

Yep, I'll do that.

#5 @dd32
7 years ago

#43011 was marked as a duplicate.

#6 @pento
6 years ago

  • Version trunk deleted

This ticket was mentioned in Slack in #core by skithund. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.