0
votes

I am developing a Google Drive application for Windows Phone using URLs provided in the SDK through HTTPWebRequest. Is there an API for WP8 to develop Google Drive applications?

I downloaded all of the content without any problem. While I am uploading the MIMEtype, it is not always uploaded correctly, and is uploaded as an octet stream.

Please can anyone help with how to upload to Google Drive using C# code?

Thanks

2

2 Answers

0
votes

Check the "Upload Files" section of the Google Drive SDK :

https://developers.google.com/drive/manage-uploads

0
votes

i got solution, actually i am using string[] HeaderKeys = { "X-Upload-Content-Type" }; string[] HeaderValues = { "application/vnd.google-apps.folder" } for post method, here i used request.contentType in the place of X-Upload-Content-Type now i am uploading all files with correct stream.