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

support uploading file content to addons submission api #2497

Open
eviljeff opened this issue Aug 30, 2022 · 0 comments · May be fixed by #2868
Open

support uploading file content to addons submission api #2497

eviljeff opened this issue Aug 30, 2022 · 0 comments · May be fixed by #2868
Assignees

Comments

@eviljeff
Copy link
Member

eviljeff commented Aug 30, 2022

https://addons-server.readthedocs.io/en/latest/topics/api/addons.html supports some fields which are set or updated by uploading a file, as multipart-formdata. The addon icon, version source, and preview images are all file uploads - they are all also sent as subsequent PATCH requests* because JSON and form data encoding can't be combined.

*a general update/edit function for addons/versions (i.e. without uploading a new xpi) would also be useful, but is a slightly different ask, so would be a separate issue (it would however share a lot of code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant