[FX.php List] Forcing a browser to download a text file

Gjermund Gusland Thorsen ggt667 at gmail.com
Sun Jul 15 02:43:23 MDT 2007


add .bin at the end of the .txt

On 7/15/07, Bob Patin <bob at patin.com> wrote:
> Well, what I was hoping to do was to have links for all their
> uploaded files, whatever they were, and have them download, not display.
>
> I've done tons of sites for downloading ZIP files, but this is,
> amazingly, the first time I've ever upload plain text files and then
> tried to just link to them for downloading... it's got to be a simple
> HTML change...
>
>
> On Jul 14, 2007, at 5:34 PM, Alex Gates wrote:
>
> > Hi Bob-
> >
> > I've never tried this before - but a google search brought me to this:
> >
> > http://www.thescripts.com/forum/thread475396.html
> >
> > Whatever you end up using, make sure to test it on multiple browsers.
> >
> > If nothing else, why not just instruct to right click and 'save
> > as..' ?
> >
> > Alex
> >
> > Bob Patin wrote:
> >> How do I force a browser to download a text file rather than to
> >> display it in the browser? I've written an upload script for a
> >> client so that they can upload text files, but when I click on the
> >> links for the uploaded files, they display rather than download.
> >> Thanks,
> >> Bob Patin
> >> Longterm Solutions
> >> bob at longtermsolutions.com
> >> 615-333-6858
> >> http://www.longtermsolutions.com
> >>   CONTACT US VIA INSTANT MESSAGING:
> >>      AIM or iChat: longterm1954
> >>      Yahoo: longterm_solutions
> >>      MSN: tech at longtermsolutions.com
> >>      ICQ: 159333060
> >> _______________________________________________
> >> FX.php_List mailing list
> >> FX.php_List at mail.iviking.org
> >> http://www.iviking.org/mailman/listinfo/fx.php_list
> > _______________________________________________
> > FX.php_List mailing list
> > FX.php_List at mail.iviking.org
> > http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>


More information about the FX.php_List mailing list