http
http copied to clipboard
Support custom multipart body types for Google Drive API file upload
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