Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v diff -u -N -r1.189.2.60 -r1.189.2.61 --- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 24 Jul 2020 12:19:55 -0000 1.189.2.60 +++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl 28 Jul 2020 11:11:33 -0000 1.189.2.61 @@ -4073,7 +4073,9 @@ [dict get $resource_info extraFiles] \ ] { + #ns_log notice "::util::resources::download $download_prefix/$file" set result [util::http::get -url $download_prefix/$file -spool] + #ns_log notice "... returned status code [dict get $result status]" if {[dict get $result status] == 200} { set fn [dict get $result file] } else { @@ -4123,9 +4125,9 @@ } else { error "download from $url failed: $result" } + set file [ad_file tail $url] + file rename -force -- $fn $local_path/$file } - set file [ad_file tail $url] - file rename -force -- $fn $local_path/$file } } }