Error loading file to Google Drive.

I have a Google Drive SDK in my application project. and try uploading the image to Google Drive, but I got an error message.

I am making code from here

when i run this code i got below error

Error Domain=com.google.GTLJSONRPCErrorDomain Code=400 "The operation couldn’t be completed. (Invalid Value)" UserInfo=0x276940 {NSLocalizedFailureReason=(Invalid Value), GTLStructuredError=GTLErrorObject 0x2fade0: {message:"Invalid Value" code:400 data:[1]}, error=Invalid Value}

Please give me a suggestion for this. thanks in advance

+5
source share
3 answers

​​ . , Google-, , google. google ? , . .

+1

HI pratik google - , , . - , mimeType Name.

Google mime, "application/json-rpc" . mime ObjectiveC SDK, .

GTLDriveFile *newFile = [GTLDriveFile object];
newFile.title = filename;
newFile.mimeType = @"image/png";

: , Google .

: - Google iOS,

ans , Google .

+2

, ( )...

, :

 https://developers.google.com/drive/v2/web/search-parameters

\before ', "" ""...

0

All Articles