Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Akshata G.
9 years agoHelpful | Level 5
API fails to autorename the files with large file size
Hi,
I am facing issue with autorenaming of uploaded files. The API fails to autorename the files with large file size where as the smaller files are getting renamed properly.
Details of the issue...
Steve M.
Dropbox Staff
9 years agoAkshata, no, the expected behavior is that files of all sizes work the same way. That said, I'm unable to reproduce the issue with a 13-byte file. When I try it, the file remains unchanged and not renamed:
$ echo Hello, World | http post https://content.dropboxapi.com/2/files/upload Dropbox-Api-Arg:'{"path": "/test", "mode": "add", "autorename": true}' Content-Type:application/octet-stream Authorization:'Bearer <REDACTED>'
HTTP/1.1 200 OK
...
Date: Fri, 27 May 2016 04:34:27 GMT
{
...
"name": "test",
"path_display": "/test",
"path_lower": "/test",
"server_modified": "2016-05-27T04:34:27Z",
"size": 13
}
$ echo Hello, World | http post https://content.dropboxapi.com/2/files/upload Dropbox-Api-Arg:'{"path": "/test", "mode": "add", "autorename": true}' Content-Type:application/octet-stream Authorization:'Bearer <REDACTED>'
HTTP/1.1 200 OK
...
Date: Fri, 27 May 2016 04:34:33 GMT
{
...
"name": "test",
"path_display": "/test",
"path_lower": "/test",
"server_modified": "2016-05-27T04:34:27Z",
"size": 13
}
Please double check that you're actually sending the same data both times.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!