1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    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.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    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.

  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    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.


IMN logo majestic logo threadwatch logo seochat tools logo