Closed selanthiraiyan closed 3 days ago
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.
rest/v1.1/sites/\(siteID)/media/new
Start using wp/v2/sites/\(siteID)/media endpoint to upload images. This endpoint works even when XMLRPC is disabled.
wp/v2/sites/\(siteID)/media
Internal - p1728974476767139/1728139321.219389-slack-C6H8C3G23 Internal - p91TBi-6OX-p2
iOS - https://github.com/woocommerce/woocommerce-ios/issues/14232
🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.
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 - https://github.com/woocommerce/woocommerce-ios/issues/14232