且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Google云端硬盘REST API可恢复的上传返回400错误请求

更新时间:2021-12-02 07:24:18

基本上, 400:错误请求表示未提供必填字段或参数,所提供的值是无效的,或提供的字段的组合是无效的。

Basically, 400: Bad Request means that a required field or parameter has not been provided, the value supplied is invalid, or the combination of provided fields is invalid.


当试图添加一个重复的父一个云端硬盘项目当试图添加一个可以在目录图中创建一个循环的父项时,也会抛出它。

This error can be thrown when trying to add a duplicate parent to a Drive item. It can also be thrown when trying to add a parent that would create a cycle in the directory graph.

您也可以检查相关的SO帖子,建议正确使用Android特定的API做可恢复的上传。请参阅创建文件

You may also check this related SO post which suggested to properly use the Android-specific API to do resumable upload. See creating files.