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

S3File: open('rb') -> ValueError('The file cannot be reopened.') #1308

Closed
jedie opened this issue Sep 27, 2023 · 1 comment
Closed

S3File: open('rb') -> ValueError('The file cannot be reopened.') #1308

jedie opened this issue Sep 27, 2023 · 1 comment

Comments

@jedie
Copy link

jedie commented Sep 27, 2023

In the old v1.13.2 this worked:

file=my_model_instance.field_name.file
file.open('rb')

The field is a models.FileField with a S3Storage storage.

With v1.14 it's result in e.g.:

  File "foo.py", line 123, in bar
    file.open('rb')
  File "django/core/files/base.py", line 114, in open
    raise ValueError("The file cannot be reopened.")
@jschneier
Copy link
Owner

I think #1311 which is also released fixed this, will reopen if not. Thanks for the report.

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

No branches or pull requests

2 participants