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 Dec 22, 2022
1 parent 6c0e900 commit 3a1a6ad
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 @@ -70,7 +70,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 3a1a6ad

Please sign in to comment.