Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
selanthiraiyan opened this issue Oct 29, 2024 · 1 comment · May be fixed by #12938
Open

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

selanthiraiyan opened this issue Oct 29, 2024 · 1 comment · May be fixed by #12938
Assignees
Labels
priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.

Comments

@selanthiraiyan
Copy link
Contributor

selanthiraiyan commented Oct 29, 2024

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

@selanthiraiyan selanthiraiyan added priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement. labels Oct 29, 2024
@dangermattic
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants