-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
Dropbox: large file support and a regression fix #379
Conversation
storages/backends/dropbox.py
Outdated
@@ -21,6 +21,7 @@ | |||
from django.utils.deconstruct import deconstructible | |||
from dropbox import Dropbox | |||
from dropbox.exceptions import ApiError | |||
from dropbox.files import UploadSessionCursor, CommitInfo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only failing build is lint. Change import order to make it happy:
from dropbox.files import CommitInfo, UploadSessionCursor
Codecov Report
@@ Coverage Diff @@
## master #379 +/- ##
==========================================
+ Coverage 75.82% 76.05% +0.23%
==========================================
Files 11 11
Lines 1551 1566 +15
==========================================
+ Hits 1176 1191 +15
Misses 375 375
Continue to review full report at Codecov.
|
* Fix .save method of the Dropbox backend (jschneier#378) * Dropbox large file support (jschneier#301) * Make linter happy
This PR:
DropBoxStorage._save
introduced with e46f306 (see Dropbox storage throws an exception when saving a file #378);I've tested uploading a 1.5 GB file and it works fine.