How to POST multipart/related content with httr (for Google Drive API)
问题 I got simple file uploads to Google Drive working using httr. The problem is that every document is uploaded as "untitled", and I have to PATCH the metadata to set the title. The PATCH request occasionally fails. According to the API, I ought to be able to do a multipart upload, allowing me to specify the title as part of the same POST request that uploads the file. res<-POST( "https://www.googleapis.com/upload/drive/v2/files?convert=true", config(token=google_token), body=list(y=upload_file