php : open a file download dialog

Posted by Hugh Valin on Stack Overflow See other posts from Stack Overflow or by Hugh Valin
Published on 2010-05-17T22:17:08Z Indexed on 2010/05/17 22:20 UTC
Read the original article Hit count: 238

Filed under:
|

I have a mpg file hosted in Amazon S3, that I want to link to a page I have, so the user will be able to download it from the page. I have in my page a linke: bla bla" The link to the file workds when I right click it and choose "Save Target As" , but I would like it to work also when I left click it, and that it will open a file download dialog. right now, a left click will direct to a page that has the video directly played in it (in FireFox) or just won't load (in Explorer) I am working in php, anyone has a clue why this happens?

© Stack Overflow or respective owner

Related posts about php

Related posts about files