Don't remove file after judging on output-only

This commit is contained in:
cuom1999 2023-03-16 11:09:03 -05:00
parent a62df01ecf
commit 99c9475ff7
2 changed files with 7 additions and 7 deletions

View file

@ -119,9 +119,9 @@ class ProfileForm(ModelForm):
def file_size_validator(file):
limit = 10 * 1024 * 1024
limit = 1 * 1024 * 1024
if file.size > limit:
raise ValidationError("File too large. Size should not exceed 10MB.")
raise ValidationError("File too large. Size should not exceed 1MB.")
class ProblemSubmitForm(ModelForm):