将文件上传到Google云端硬盘时出错 [英] Error while uploading file to Google Drive

查看:1331
本文介绍了将文件上传到Google云端硬盘时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序项目中实施了Google Drive SDK。并尝试在Google云端硬盘中上传图片但我收到了错误消息。



我使用这里



当我运行这段代码时,我得到了下面的错误



<$ (无效值)UserInfo = 0x276940 {NSLocalizedFailureReason =(无效值),GTLStructuredError = GTLErrorObject 0x2fade0(错误域= com.google.GTLJSONRPCErrorDomain代码= 400操作无法完成。 :{message:Invalid Valuecode:400 data:[1]},error = Invalid Value}



<请给我这个建议。
在此先感谢

解决方案

我之前得到了同样的错误。我认为你没有先授权谷歌驱动器,你应该再次通过登录你的谷歌帐户来检查它。上传文件之前,您是否使用Google云端硬盘帐户登录?如果不是,那么可能会导致错误。另请再次尝试使用新的重新生成的客户端ID和密钥。


I have implement Google Drive SDK in my app project. and try to upload an image in Google Drive But I got Error.

I do 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 suggestion for this. Thanks in advance

解决方案

I got same kind of error earlier. I think you did not authorized first with google drive, you should have to check it again by login with your google account. Have you logged in with google drive account before uploading file? If not then it may cause error. Also please try again with new regenerated client id and secret key.

这篇关于将文件上传到Google云端硬盘时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆