On 06-Jan-2003/22:26 -0200, Joćo Borsoi Soares <[EMAIL PROTECTED]> wrote: > >Em Seg, 2003-01-06 ąs 19:02, Daily, Shane, CTR escreveu: >> There is no way to FORCE a browser to download a file (security). It will / >> should always ask first if the mime type is unknown to itself. >> >> Maybe if you could provide more details on what EXACTLY you're trying to >> accomplish......... > >I want to make a link for my user to download a pdf file. But I don't >want the browser to open it, just download it. > >Take a look at the following link: > >http://www.rau-tu.unicamp.br/nou-rau/sbu/document/list.php?tid=3 > >You can see the user may choose to open or download a pdf file. That's >what I want to do. :-)
They played with the MIME headers. The "View" Link uses application/pdf, which will probably be viewed since most web surfers have a PDF viewer installed. The "Download" link uses application/octet-stream, which almost always prompts a download since the browser cannot know what application to use to open the file. You will have to write PHP code to specify the MIME headers if you want to do the same thing. Tony -- Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux. The choice of a GNU generation <http://www.linux.org/> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list