[Product] Use wp/v2
endpoint for uploading images
#12836
Labels
priority: medium
Planned tasks usually belonging to ongoing projects
type: enhancement
A request for an enhancement.
Problem
We currently use
rest/v1.1/sites/\(siteID)/media/new
endpoint to upload images. This doesn't work when XMLRPC is disabled on the site.Proposed solution
Start using
wp/v2/sites/\(siteID)/media
endpoint to upload images. This endpoint works even when XMLRPC is disabled.Internal - p1728974476767139/1728139321.219389-slack-C6H8C3G23
Internal - p91TBi-6OX-p2
iOS - woocommerce/woocommerce-ios#14232
The text was updated successfully, but these errors were encountered: