Hi,
I am trying to send multiple files in sequence using ns_return. Only the last file is being sent.
I have a directory with n files in it, each with a unique name (file_1, file_2, ...)
I am looping through n one step at a time (1, 2, ...)
Here is the code I am using to send the files:
# create and save file to location, then
set fd [open $current_file]
ns_return 200 application/vnd.ms-excel [read $fd]
close $fd
where current_file is the location of file_n
These files are created dynamically - one at a time with the attempted download happening right after the file is created and saved.
The only file that gets sent is the last file that was created.
All the files are created and are different.
I am certainly missing something obvious. Can anyone point me to a solution?
Thanks,
Thorpe