Skip to content

Document Creating Multiple Attachments Using A Web Browser #4648

Description

@ronnievsmith

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions