Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,688
Issues
1,688
List
Boards
Labels
Service Desk
Milestones
Merge Requests
84
Merge Requests
84
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
623e8a23
Commit
623e8a23
authored
Oct 17, 2016
by
HERBERT Ryan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
controllers/file.py prevent upload with low disk space
parent
c42ddcfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server/web2py/applications/vidjil/controllers/file.py
server/web2py/applications/vidjil/controllers/file.py
+3
-0
No files found.
server/web2py/applications/vidjil/controllers/file.py
View file @
623e8a23
...
...
@@ -25,6 +25,9 @@ def add():
if
not
auth
.
can_upload_sample_set
(
sample_set
.
id
):
return
error_message
(
"you don't have right to upload files"
)
else
:
enough_space
=
check_enough_space
(
def
.
DIR_SEQUENCES
)
if
not
enough_space
:
return
error_message
(
"Uploads are temporarily disabled. System admins have been made aware of the situation."
)
patient_id
=
None
run_id
=
None
...
...
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