Index: openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl,v diff -u -r1.35.8.15 -r1.35.8.16 --- openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 6 Aug 2014 10:52:38 -0000 1.35.8.15 +++ openacs-4/packages/acs-tcl/tcl/apm-file-procs.tcl 7 Aug 2014 13:17:43 -0000 1.35.8.16 @@ -501,7 +501,7 @@ if {$httpImpls ne ""} { ns_log notice "we can use the http::util:: interface using the $httpImpls implementation" set result [util::http::get -url $url -spool] - file rename $F $output_file_name + file rename [dict get $result file] $output_file_name } elseif {[info commands ::ns_http] ne "" && [apm_version_names_compare [ns_info patchlevel] "4.99.5"] == 1} { # # ... use ns_http when we have a version with the "-file" flag ...