thanhtin61294 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Upload bmp,and jpg files #445

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload jpg,bmp fails. only upload doc files,such as txt,excel,doc,ppt
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

I see the Google.Gdate.Douments.DoumentServer have two function 
is"UploadDocument"   and "UploadFile" .I use the "UploadDocument" such as 
DocumentService.UploadDocument("D:\1.txt","New Doc") is ok. but this function 
only can upload doc files(.txt,.doc.excel...) I want upload image files,such as 
jpg,bmp. I use another function "UploadFile" such as 
UploadFile("D:\1.jpg",null,null,true) also fails. why??? who can tell my how to 
use the function of "UploadFile" ????

Original issue reported on code.google.com by zhengjia...@gmail.com on 23 Nov 2010 at 3:06

GoogleCodeExporter commented 9 years ago
When calling UploadFile you have to specify valid values for all parameters:

UploadFile(string fileName, string documentName, string contentType, bool 
convert)

documentName is the desired name of the file on the server while contentType is 
the mime type of the document. Please specify them and if you are still not 
able to upload files, let us know the error message you get.

Original comment by ccherub...@google.com on 29 Nov 2010 at 3:33

GoogleCodeExporter commented 9 years ago

Original comment by ccherub...@google.com on 7 Dec 2010 at 8:47