cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Helpful | Level 6

Hi!

I am uploading files via the temporarily upload links generated via the /get_temporary_upload_link call. This all works fine, but the POST upload call to the generated upload link (e.g. https://dl.dropboxusercontent.com/apitul/1/bNi....)  is terminated for files larger than a certain limit.

 

> POST /apitul/1/bNi.... HTTP/1.1
Host: dl.dropboxusercontent.com
Accept: */*
Content-Length: 536871142
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------b315544e35df5ae3

< HTTP/1.1 413 Request Entity Too Large
< Server: nginx
< Date: Tue, 12 Mar 2019 10:10:15 GMT
< Content-Type: text/html
< Content-Length: 25658
< Connection: close
< ETag: "5c816ae0-643a"
< X-Dropbox-Request-Id: 9600532cf40be9d1ae39f8cdd6182848
< X-Robots-Tag: noindex, nofollow, noimageindex
< Strict-Transport-Security: max-age=15552000; includeSubDomains
< 
* Closing connection 0

 

This test-file-200MB works fine but this larger test-file-512MB isn't working. The receiving Dropbox account has enough space available to store the large file.

Are there any uploads limits? If there are limits, is there another way to upload files to upload large files via the API without the need of an authorization token?

I appreciate if anyone can help me out with this issue.

Cheers!

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

Unfortunately, the links returned by get_temporary_upload_link do have a file size limit, as you found. Apologies this isn't better documented! I'll ask the team to clarify this.

There isn't an alternative though, so that does mean that in this case, to upload large files, you'd need to either give the access token to the client to perform the upload session calls client-side (which isn't recommended for untrusted clients, of course), or send all of the data to upload through your server to perform the upload session calls there.

I'll also send this along as a feature request for a 'get_temporary_upload_link'-like version of upload sessions to support uploading large files without direct access to the access token, but I can't promise if or when that would be implemented.

View solution in original post

11 Replies 11
Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

Unfortunately, the links returned by get_temporary_upload_link do have a file size limit, as you found. Apologies this isn't better documented! I'll ask the team to clarify this.

There isn't an alternative though, so that does mean that in this case, to upload large files, you'd need to either give the access token to the client to perform the upload session calls client-side (which isn't recommended for untrusted clients, of course), or send all of the data to upload through your server to perform the upload session calls there.

I'll also send this along as a feature request for a 'get_temporary_upload_link'-like version of upload sessions to support uploading large files without direct access to the access token, but I can't promise if or when that would be implemented.

View solution in original post

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Helpful | Level 6

Thanks for your quick reply, Greg!

It is indeed disappointing that this link has a file size limit as I basically need the upload possibility without access token for my application. Ofcourse, uploading via the server is possible but that doesn't really make sense for large files as it will take (~)twice as long to upload the files to Dropbox.

I would really appreciate it if Dropbox can support uploading of large files without access token for the upload session itself. Is there a specific reason why you think that this cannot be implemented? The other major APIs like the ones for Google One, OneDrive/Sharepoint and Box do support direct uploads where the initial upload link is obtained in the same way as the get_temporary_upload_link' call.

 

 

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

Thanks for the feedback! I can't speak to the technical feasibility, so I can't say that it couldn't be implemented. I've sent this along as a feature request, but I can't promise this is something the team will be working on.

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Helpful | Level 6

Thanks! Could you add the decision of the team about this feature request in this topic or is there a specific place where I can follow this feature request?

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

I'll be sure to follow up on this thread with any updates on this request.

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Helpful | Level 6

I forgot to ask... could you let me know what the current file size limit is so I can set that in my application?

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

Officially, the limit is 150 MB, the same as /2/files/upload itself. Some uploads larger than that will still work, as in your example, but we don't recommend it as they become less reliable. (The strict cut off, where the request will get rejected with a 413 error, is 300 MB.)

Highlighted

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Explorer | Level 4

Please add this information to the documentation and +1 for the feature request. Thanks.

Re: Large uploads via /get_temporary_upload_link are terminated with '413 Request Entity Too Large'

Dropboxer
Dropboxer

@Jens S.1 Thanks for the note!

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Need more support?