#1
  1. No Profile Picture
    Reabster
    Guest
    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
    dahamsta
    Guest
    Devshed Newbie (0 - 499 posts)
    If the downloaded files are coming through the script, i.e. via a link like:

    /cgi/downloads/?file=whatever.file

    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.

    Cheers,
    adam
  4. #3
  5. No Profile Picture
    jamesh
    Guest
    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.

    James

IMN logo majestic logo threadwatch logo seochat tools logo