Skip to content

Commit

Permalink
Fix error message for exceeding max_file_size
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbraun committed Nov 28, 2022
1 parent 7a3a8f5 commit d2c9259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solutions/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def clean_file(self):
elif tartype_re.match(contenttype):
raise forms.ValidationError(_('Tar files are not supported, please upload the files individually or use a zip file.'))
if data.size > max_file_size:
raise forms.ValidationError(_("The file '%(file)s' is bigger than %(size)KiB which is not suported." %{'file':data.name, 'size':max_file_size_kib}))
raise forms.ValidationError(_("The file '%(file)s' is bigger than %(size)d KiB which is not supported." %{'file':data.name, 'size':max_file_size_kib}))
return data

class MyBaseInlineFormSet(BaseInlineFormSet):
Expand Down

0 comments on commit d2c9259

Please sign in to comment.