June 30th, 1999, 09:47 AM
I have created a perl cgi script that dinamically displays the files in a directory as well as other directories available. For whatever reason, when I try to download the documents displayed, the browser trys to interpret and display them. How do I display the "save as" window??
Thanks for your help.
If the downloaded files are coming through the script, i.e. via a link like:
you'll probably need to set a Content-type header like text/save to tell the browser to save the file. Otherwise, it may be to do with your server and the permission set on the directory on files in it.
July 20th, 1999, 07:22 AM
It may be easier if you were to post your script and give an indication of what the file types are that you want to download using your script.
It may be a simple case of using the appropriate mime type as a header, and use perl filehandles to assemble the file as a multipart document.