Attachments added during perform cause 500 if file name too long.

Issue #327 resolved
Ryan Bottema created an issue

Attaching files with long names throws a 500 when performing. Would be nice to have some sort of attachment formset that could be validated at submission.

Default max_length for a FileField is currently 100.

Comments (6)

  1. Randle Taylor

    @ryanbottema I'm having trouble reproducing this. If I attach a file to a test list instance with a file name of 200 characters, it submits okay, but the file name gets truncated.

  2. Ryan Bottema reporter

    I'm getting an mssql error "String or binary data would be truncated". I'll see if I can create a quick fix.

  3. Randle Taylor

    Okay thanks, I only tested on PostgreSQL and SQLite...I guess that behaviour is DB dependent. I can take another look if you don't see a simple solution.

  4. Log in to comment