|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Downloading in Perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|