Index: openacs-4/packages/attachments/www/file-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/attachments/www/file-add-2.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/attachments/www/file-add-2.tcl 6 Dec 2018 14:26:00 -0000 1.13 +++ openacs-4/packages/attachments/www/file-add-2.tcl 6 Dec 2018 15:48:10 -0000 1.14 @@ -27,7 +27,7 @@ from fs_root_folders where folder_id=:root_folder }] - set max_bytes [parameter::get -package_id $fs_package_id -parameter "MaximumFileSize"] + set max_bytes [fs::max_upload_size -package_id $fs_package_id] if { $n_bytes > $max_bytes } { # Max number of bytes is used in the error message set max_number_of_bytes [util_commify_number $max_bytes]