We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06fa5e5 commit 6459638Copy full SHA for 6459638
1 file changed
ietf/utils/validators.py
@@ -55,8 +55,8 @@ def __ne__(self, other):
55
validate_regular_expression_string = RegexStringValidator()
56
57
def validate_file_size(file):
58
- if file._size > settings.SECR_MAX_UPLOAD_SIZE:
59
- raise ValidationError('Please keep filesize under %s. Requested upload size was %s' % (filesizeformat(settings.SECR_MAX_UPLOAD_SIZE), filesizeformat(file._size)))
+ if file.size > settings.SECR_MAX_UPLOAD_SIZE:
+ raise ValidationError('Please keep filesize under %s. Requested upload size was %s' % (filesizeformat(settings.SECR_MAX_UPLOAD_SIZE), filesizeformat(file.size)))
60
61
def validate_mime_type(file, valid):
62
file.open()
0 commit comments