elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

Support custom multipart body types for Google Drive API file upload #60

Open jhf opened 5 years ago

jhf commented 5 years ago

To use the Google Drive API For file upload with metadata, such as the name of the document, a multipart body must be provided [1] with the type multipart/related, but the multipartBody only produces multipart/form-data.

Having the possibility to specify multipart bodies, with a custom content type would allow usage of such API's.

[1] https://developers.google.com/drive/api/v3/manage-uploads#multipart