-
-
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
Update S3Boto3Storage class by updating size method to read the file … #366
Update S3Boto3Storage class by updating size method to read the file … #366
Conversation
Codecov Report
@@ Coverage Diff @@
## master #366 +/- ##
=======================================
Coverage 75.61% 75.61%
=======================================
Files 11 11
Lines 1546 1546
=======================================
Hits 1169 1169
Misses 377 377
Continue to review full report at Codecov.
|
@jschneier I add a fix for getting size of file when using boto3 and I need that fix so that django-storage and boto3 can working |
…size using size attr instead of content_lenght Update S3Boto3Storage class by updating size method to read the file size using size attr instead of content_lenght
2e0e47e
to
5e250ce
Compare
Merged in 4501f99. Version bump will come soon, please use master until then. Thanks for the report and patch. |
@jschneier Thanks for merging this to master |
@jschneier It seems the commit fix did not fix the issue because the following method
So to solve the above issue I think we need to check the instance type before reading from size
Please let me know what do you think ? |
I'm wondering if this is a bug in boto3 that might depend on your version. What version of |
Nevermind, it appears to be intentional. We can use a |
Pushed 523ab59. |
@jschneier Thanks for your released to handle that :) |
Update size method of
S3Boto3Storage
to read size usingsize
and notcontent_lenght