Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upload large files (>200 MB) to Dropbox #301

Closed
maxmalysh opened this issue May 3, 2017 · 0 comments
Closed

Can't upload large files (>200 MB) to Dropbox #301

maxmalysh opened this issue May 3, 2017 · 0 comments
Labels

Comments

@maxmalysh
Copy link
Contributor

This is what I receive when trying to upload a large file:

ErrorResponse: [413] Error parsing response body or headers: 
Body - b'<!DOCTYPE html>\n<html>\n<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
Headers - HTTPHeaderDict({'Date': 'Wed, 03 May 2017 03:07:21 GMT', 'Server': 'nginx', 'Content-Type': 'text/html', 'X-Robots-Tag': 'noindex, nofollow, noimageindex', 'Content-Length': '25546', 'Connection': 'close', 'X-Dropbox-Request-Id': 'f5a26cc8ee0d984112ef3131868893d2', 'ETag': '"58ed15a2-63ca"'})

The reason is that django-storages uses files_upload API method to upload files, and documentation recommends against using it to upload files larger than 150 MB.

There is a topic on Dropbox forum describing exactly the same problem in the Perl API wrapper: https://www.dropboxforum.com/t5/API-support/413-response-with-a-353M-video-and-HTML-garbage-response/td-p/203635

It looks likes something like ChunkedUploader should be used instead.

patroqueeet pushed a commit to patroqueeet/django-storages that referenced this issue May 3, 2017
maxmalysh added a commit to maxmalysh/django-storages that referenced this issue Aug 10, 2017
jschneier pushed a commit that referenced this issue Aug 14, 2017
* Fix .save method of the Dropbox backend (#378)

* Dropbox large file support (#301)

* Make linter happy
jschneier pushed a commit that referenced this issue Aug 14, 2017
* Fix .save method of the Dropbox backend (#378)

* Dropbox large file support (#301)

* Make linter happy
jschneier pushed a commit that referenced this issue Aug 14, 2017
* Fix .save method of the Dropbox backend (#378)

* Dropbox large file support (#301)

* Make linter happy
nitely pushed a commit to satellogic/django-storages that referenced this issue Jul 30, 2018
* Fix .save method of the Dropbox backend (jschneier#378)

* Dropbox large file support (jschneier#301)

* Make linter happy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants