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

Document Creating Multiple Attachments Using A Web Browser #4648

Open
ronnievsmith opened this issue Jun 19, 2023 · 1 comment
Open

Document Creating Multiple Attachments Using A Web Browser #4648

ronnievsmith opened this issue Jun 19, 2023 · 1 comment

Comments

@ronnievsmith
Copy link

ronnievsmith commented Jun 19, 2023

Summary

The documentation shows that it is possible to load multiple attachments in a single HTTP PUT, the Content-Type being multipart/related. Web browser methods XMLHTTPRequest and Fetch do not natively produce HTTP requests with this Content-Type.

Desired Behaviour

Publish JavaScript illustrating how to PUT multiple attachments in a single request to CouchDB.

NOTE: I tried to proxy a request crafted with FormData() through Node.js and simply rewrite the Content-Type (keeping the boundary) but this fails with a 500 error.

@ronnievsmith
Copy link
Author

BTW, Project Fauxton does not support (illustrate) multi file uploads. In other words, there does not seem to be a working example available.

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

No branches or pull requests

1 participant