Index: openacs-4/packages/xowiki/www/xinha/insert-file.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/xinha/insert-file.tcl,v diff -u -r1.7.2.2 -r1.7.2.3 --- openacs-4/packages/xowiki/www/xinha/insert-file.tcl 1 Jul 2020 19:31:58 -0000 1.7.2.2 +++ openacs-4/packages/xowiki/www/xinha/insert-file.tcl 13 Jul 2020 12:02:34 -0000 1.7.2.3 @@ -50,7 +50,7 @@ set maximum_folder_size [parameter::get -parameter "MaximumFolderSize"] if { $maximum_folder_size ne "" } { - if { $folder_size+[file size ${upload_file.tmpfile}] > $maximum_folder_size } { + if { $folder_size+[ad_file size ${upload_file.tmpfile}] > $maximum_folder_size } { template::form::set_error upload_form upload_file \ [_ file-storage.out_of_space] break