Ns returnfile
ns_returnfile 200 "application/zip" $filepath ns_returnfile 200 [ns_guesstype $file] $filepath
For now, see ns_return
Want to name the file?
ns_set update [ns_conn outputheaders] content-disposition "attachment; filename=1.abc"
ns_returnfile 200 "application/zip" $filepath ns_returnfile 200 [ns_guesstype $file] $filepath
For now, see ns_return
Want to name the file?
ns_set update [ns_conn outputheaders] content-disposition "attachment; filename=1.abc"