How can I stop sorl thumbnail from breaking with very long filenames?
- by bitbutter
I've noticed that when working with SORL thumbnail, sometimes a user will upload an image with a very long filename, longer than the varfield in the database can hold. The name gets truncated in the database and the project gives errors whenever the image is requested.
Is there a smart and safe way to have django automatically truncate long…