Commit eb27f2bb authored by Frank Bergmann's avatar Frank Bergmann

- Removed debugging code

parent 0f1dc5cc
......@@ -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}"
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\"}"
ad_script_abort
}
......
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