woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Product] Use `wp/v2` endpoint for uploading images #12836

Closed selanthiraiyan closed 3 days ago

selanthiraiyan commented 3 weeks ago

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

dangermattic commented 3 weeks ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.