We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's say you have:
models.ImageField(storage=s3, upload_to='myfolder', max_length=100)
If you were to pass it a file name of length 100, it will happily take it.
The pitfall is that in reality it's stored in the database as myfolder/[file name]
myfolder/[file name]
Since the db varchar is set to max 100, len('myfolder/') characters are cut from the end of the string
len('myfolder/')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Let's say you have:
If you were to pass it a file name of length 100, it will happily take it.
The pitfall is that in reality it's stored in the database as
myfolder/[file name]
Since the db varchar is set to max 100,
len('myfolder/')
characters are cut from the end of the stringThe text was updated successfully, but these errors were encountered: