Commit 4216cd4a authored by Mathieu Rodic's avatar Mathieu Rodic

[UPDATE] Increased file upload limit

parent 569d42d8
...@@ -126,8 +126,8 @@ class CustomForm(forms.Form): ...@@ -126,8 +126,8 @@ class CustomForm(forms.Form):
file_.name = str(datetime.now().microsecond) file_.name = str(datetime.now().microsecond)
# raise forms.ValidationError(_('Come on dude, name too long. Now is:'+file_.name)) # raise forms.ValidationError(_('Come on dude, name too long. Now is:'+file_.name))
#File size #File size
if len(file_)>104857600: if len(file_)>128 * 1024 * 1024:
raise forms.ValidationError(_('File to heavy! (<100MB).')) raise forms.ValidationError(_('File too heavy! (<128MB).'))
## File type: ## File type:
# if file_.content_type == "application/zip": # if file_.content_type == "application/zip":
# raise forms.ValidationError(_('We need a zip pls.')) # raise forms.ValidationError(_('We need a zip pls.'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment