上传文件时Dropbox REST API 400错误

时间:2016-03-28 14:07:43

标签: dropbox-api

最近dropbox api在上传文件时给了我404错误。相同的代码已经工作了几个月。有什么变化吗?我正在通过sharpbox访问其余的api。

错误响应如下。我要求的部分要求低于此。

响应:

HTTP/1.1 400 Bad Request
Server: nginx
Date: Mon, 28 Mar 2016 13:20:40 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
X-Dropbox-Request-Id: ed356744df5e9541856f727505cceee0
X-Robots-Tag: noindex, nofollow, noimageindex

2e
{"error": {"file": "Expecting a file upload"}}
0

请求:

POST https://api-content.dropbox.com/1/files/dropbox/VMDVGZION?file=test.pdf&oauth_consumer_key=0o1pqhuy0ul766h&oauth_nonce=f74c8207d9a741929529f1a662804e66&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1459171240&oauth_token=0apqmt3p17e6s69z&oauth_version=1.0&oauth_signature=8i0QAVDTIDyQPUMNZTfDWdFDiyM%3d HTTP/1.1
Content-Type: multipart/form-data; boundary=-----------------------------28947758029299
Host: api-content.dropbox.com
Content-Length: 292539

-------------------------------28947758029299
Content-Disposition: form-data; name="file"; filename="test.pdf";
Content-Type: application/octet-stream

%PDF-1.4 %âãÏÓ

..

-------------------------------28947758029299--

0 个答案:

没有答案