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

Send copy of ContentFile.file to upload_fileobj. #376

Closed
wants to merge 3 commits into from
Closed

Send copy of ContentFile.file to upload_fileobj. #376

wants to merge 3 commits into from

Conversation

jpmelos
Copy link

@jpmelos jpmelos commented Aug 6, 2017

This will stop upload_fileobj from modifying the internal file. This is important because the default storage mixin for hashed static files that comes in Django expects files to be open after they are saved, and
upload_fileobj closes them.

This will stop upload_fileobj from modifying the internal file. This is
important because the default storage mixin for hashed static files that
comes in Django expects files to be open after they are saved, and
upload_fileobj closes them.
@codecov-io
Copy link

codecov-io commented Aug 6, 2017

Codecov Report

Merging #376 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #376      +/-   ##
==========================================
+ Coverage   75.82%   75.83%   +0.01%     
==========================================
  Files          11       11              
  Lines        1551     1552       +1     
==========================================
+ Hits         1176     1177       +1     
  Misses        375      375
Impacted Files Coverage Δ
storages/backends/s3boto3.py 86.58% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc3902d...747d698. Read the comment docs.

This code is run twice per file, so we don't know if the file has been
read before.
@jschneier
Copy link
Owner

jschneier commented Aug 14, 2017

Sorry, is this another fix for #367? Seems like it's dealing with the same issue.

@jpmelos
Copy link
Author

jpmelos commented Aug 14, 2017

It could be, but I'm not sure. I'll verify and come back to you. Thanks for taking a look.

@jschneier
Copy link
Owner

Merged #754 to fix this instead, thanks for your contribution.

@jschneier jschneier closed this Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants