-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Respect max_length when AWS_S3_FILE_OVERWRITE=True #513
Comments
Have opened provisional PR at #554 |
jschneier
added a commit
that referenced
this issue
Aug 30, 2018
jschneier
added a commit
that referenced
this issue
Aug 30, 2018
jschneier
added a commit
that referenced
this issue
Aug 30, 2018
jschneier
added a commit
that referenced
this issue
Aug 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
get_available_name
method ofS3Boto3Storage
doesn't respectmax_length
.The Django Storage's
get_available_name
method truncates the file name if it's length is more thanmax_length
.When
AWS_S3_FILE_OVERWRITE=True
and len(file_name) > max_length, this results in Database error -DataError: (1406, "Data too long for column 'file_field' at row 1")
.Validation for
max_length
should be added to the overridden method, when file_overwrite=True.The text was updated successfully, but these errors were encountered: