Skip to content

#473 fix for 'seek of closed file' Error #517

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

Closed
wants to merge 1 commit into from

Conversation

agrelle
Copy link

@agrelle agrelle commented Jan 31, 2021

need to change the order here, first populate "self.file", then seek to start of file handle, and then "self.storage.save" (which will result in a closed file handle, from which we can no longer seek nor read)

…f.file", then seek to start of file handle, and then "self.storage.save" (which will result in a closed file handle, from which we can no longer seek nor read)
@vstoykov
Copy link
Collaborator

Thank you for your contribution!

Can I ask if you can add a test that will fail if the fix is not applied? Thank you.

@julianwachholz
Copy link
Contributor

I saw a recent new update for this package but unfortunately this didn't make the cut? :(

julianwachholz added a commit to julianwachholz/django-imagekit that referenced this pull request Dec 22, 2021
@vstoykov vstoykov closed this in #547 Apr 5, 2023
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.

3 participants