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

Alex Gates alex at gandrpublishing.com
Sun Jul 15 12:22:06 MDT 2007


Is editing the filename and deleting .bin easier than right clicking and 
selecting "save as"?

You'll have to instruct the user to change the filename, and I suspect 
explaining 'right click save as' would be easier.

My two cents.

Let me know if you find a better method - this would be good to know.

Bob Patin wrote:
> That's a good idea, but I was hoping I could figure out a way that 
> filenames wouldn't have to be altered. I don't know how savvy this 
> client is with filenames.
> 
> Adding another extension would certainly be an easy step though...
> 
> BP
> 
> 
> On Jul 15, 2007, at 3:43 AM, Gjermund Gusland Thorsen wrote:
> 
>> 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
>>>
>> _______________________________________________
>> 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