Catch file-upload IntegrityError