How can I open a download popup for all kind of files in my Perl CGl script?

Posted by zeina on Stack Overflow See other posts from Stack Overflow or by zeina
Published on 2010-05-12T09:38:45Z Indexed on 2010/05/15 23:40 UTC
Read the original article Hit count: 113

Filed under:
|

On my application, the user needs to click on a file name, and then the user is supposed to choose either to download the file or open it. I put code for it that is working fine for .doc, .txt extentions yet it is not working fine for .docx

My code is the following:

 @header('Location:'.$attachment_path);

Any idea of how to do it so it will work for all kind of attachment?

© Stack Overflow or respective owner

Related posts about attachment

Related posts about perl