Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
4216cd4a
Commit
4216cd4a
authored
Mar 04, 2015
by
Mathieu Rodic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[UPDATE] Increased file upload limit
parent
569d42d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
admin.py
node/admin.py
+2
-2
No files found.
node/admin.py
View file @
4216cd4a
...
@@ -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_
)
>
1
04857600
:
if
len
(
file_
)
>
1
28
*
1024
*
1024
:
raise
forms
.
ValidationError
(
_
(
'File to
heavy! (<100
MB).'
))
raise
forms
.
ValidationError
(
_
(
'File to
o heavy! (<128
MB).'
))
## 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.'))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment