You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ietf/secr/proceedings/forms.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,8 @@ def clean_file(self):
53
53
ext=os.path.splitext(file.name)[1].lower()
54
54
ifextnotinVALID_SLIDE_EXTENSIONS:
55
55
raiseforms.ValidationError('Only these file types supported for presentation slides: %s'%','.join(VALID_SLIDE_EXTENSIONS))
56
-
iffile._size>settings.MAX_UPLOAD_SIZE:
57
-
raiseforms.ValidationError('Please keep filesize under %s. Current filesize %s'% (filesizeformat(settings.MAX_UPLOAD_SIZE), filesizeformat(file._size)))
56
+
iffile._size>settings.SECR_MAX_UPLOAD_SIZE:
57
+
raiseforms.ValidationError('Please keep filesize under %s. Current filesize %s'% (filesizeformat(settings.SECR_MAX_UPLOAD_SIZE), filesizeformat(file._size)))
58
58
returnfile
59
59
60
60
classUnifiedUploadForm(forms.Form):
@@ -66,8 +66,8 @@ class UnifiedUploadForm(forms.Form):
66
66
67
67
defclean_file(self):
68
68
file=self.cleaned_data['file']
69
-
iffile._size>settings.MAX_UPLOAD_SIZE:
70
-
raiseforms.ValidationError('Please keep filesize under %s. Current filesize %s'% (filesizeformat(settings.MAX_UPLOAD_SIZE), filesizeformat(file._size)))
69
+
iffile._size>settings.SECR_MAX_UPLOAD_SIZE:
70
+
raiseforms.ValidationError('Please keep filesize under %s. Current filesize %s'% (filesizeformat(settings.SECR_MAX_UPLOAD_SIZE), filesizeformat(file._size)))
0 commit comments