Forum .LRN Q&A: File-Storage: Upload larger 1meg

Collapse
Posted by Christian Fuchs on
What ever I try:
Changing Parameter, changing file-add.tcl
I am not able to upload files larger 1 meg to file-storage.
We use Openacs 5.2.2

Please help, there must be a bug in 5.2.2.

Package Version
Bulk Mail 0.5.1d7
Calendar 2.1.0b4
Chat 5.0d2
Content Management System 5.1d
Curriculum 1.5
Curriculum Central 0.4.1d
Curriculum Tracker 0.1d
dotFOLIO 0.3
dotFOLIO UI 0.3
dotLRN 2.2.0a1
dotLRN Admin 2.2.0a1
dotLRN Homework 2.2.0a1
Edit This Page 1.8
Evaluation 0.2d
FAQ 5.2.0d4
File Storage 5.2.2
Forums 1.2.0d3
General Comments 5.2.0
Lars Blogger 2.2.0
Logger 1.1b4
LORS Management 0.7d
News 5.2.0d5
News Aggregator 1.0.2
Notifications 5.2.0
Organization 0.5d4
Photo Album 5.2.3
Project Manager 2.70a1
Room Reservation 0.3
Search 5.2.2
Survey 5.0.1
User Profile 2.1.2
User Tracking 0.1d3
xowiki 0.27

Collapse
Posted by Christian Fuchs on
I forgot, I changed:

max_size -requires {upload_file} {
set n_bytes [file size ${upload_file.tmpfile}]
set max_bytes [ad_parameter "MaximumFileSize"]
if { $n_bytes > $max_bytes } {
# ad_complain "Your file is larger than the maximum file size allowed on this system ([util_commify_number $max_bytes] bytes)"
}
in file-add.tcl
Collapse
Posted by Claudio Pasolini on
Did you check your config.tcl?

ns_param maxinput [expr 20 * 1024 * 1024] ;# Maximum File Size for uploads in bytes

Collapse
Posted by Christian Fuchs on
Thank you, we found the problem.