I am trying to upload a simple text file to a specific folder in google documents but with no luck.Here is the code:
FileStream fileStream = new FileStream(@"c:\test.txt", System.IO.FileMode.Open);
DocumentEntry lastUploadEntry = globalData.service.UploadDocument("c:\\test.txt", null);
string feed = "https://docs.google.com/feeds/upload/create-session/default/private/full/folder%folder:0B2dzFB6YvN-kYTRlNmNhYjEtMTVmNC00ZThkLThiMjQtMzFhZmMzOGE2ZWU1/contents/";
var result = globalData.service.Insert(new Uri(feed), fileStream, "application/pdf", "test");
and i get an error saying {"The remote server returned an error: (503) Server Unavailable."}
I am suspecting that the destination folders uri is wrong but i can't figure out the correct one.
No comments:
Post a Comment