Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest-fs-openacs
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest-fs-openacs
Commits
eb27f2bb
Commit
eb27f2bb
authored
Jan 22, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Removed debugging code
parent
0f1dc5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
upload.tcl
www/upload.tcl
+1
-1
No files found.
www/upload.tcl
View file @
eb27f2bb
...
@@ -25,7 +25,7 @@ set package_id [db_string package "select min(package_id) from apm_packages wher
...
@@ -25,7 +25,7 @@ set package_id [db_string package "select min(package_id) from apm_packages wher
ns_log Notice
"upload: project_id=
$project
_id, path=
$path
, upload_file=
$upload
_file, tmp_file=
${upload_file.tmpfile}
"
ns_log Notice
"upload: project_id=
$project
_id, path=
$path
, upload_file=
$upload
_file, tmp_file=
${upload_file.tmpfile}
"
set
max_bytes
[
parameter::get_from_package_key -package_key
"file-storage"
-parameter
"MaximumFileSize"
]
set
max_bytes
[
parameter::get_from_package_key -package_key
"file-storage"
-parameter
"MaximumFileSize"
]
if
{
1 ||
$n
_bytes >
$max
_bytes
}
{
if
{
$n
_bytes >
$max
_bytes
}
{
doc_return 507
"application/json"
"{success: false, message:
\"
File is larger than the maximum size (
$max
_bytes bytes) allowed on this server
\"
}"
doc_return 507
"application/json"
"{success: false, message:
\"
File is larger than the maximum size (
$max
_bytes bytes) allowed on this server
\"
}"
ad_script_abort
ad_script_abort
}
}
...
...
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