-
Notifications
You must be signed in to change notification settings - Fork 321
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
long filenames can cause 500 exception #388
Comments
As far as I can tell, this happens because the processors are allowed to make the filenames as long as they want to without going through any checks. Was there a workaround? |
Changes the max_length on the File.name from 255 to 1023 Adds: - django migration - south migration
Changes the max_length on the File.name from 255 to 1023 Adds: - django migration - south migration
Changes the max_length on the File.name from 255 to 1023 Adds: - django migration - south migration
Changes the max_length on the File.name from 255 to 1023 Adds: - django migration - south migration
In my case it was simply avoiding long source filenames. |
Hmm, good point. I had a quick search of the supported database backends and found the following:
I'm not sure of the specifics for each versions of the database backends. On a side note, Django restricts the In any case, I wrote a quick Sourceshttps://www.postgresql.org/docs/9.5/static/datatype-character.html |
- Do not use hash for SEO - Truncate end of the file after generate thumbnail - Add tests with long names
when trying to save the cached thumbnail database entry, it is possible that a 500 error is raised (because the 255 character limit may be exceeded at database level).
The text was updated successfully, but these errors were encountered: