Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: What action to download to disk?
From: till
Date: Sat, 26 Aug 2000 18:23:59 +0100


><< I am wondering how to set up a button in Flash that will start a download
>of
> a file, instead of just opening it. My brother's band is using a
> Flash-driven web site and wants to add a couple songs in MP3 format for
> downloading. However, if you use a simple "Get URl ..." it will just open a
> blank window and start to stream the song - not what we want. How do I make
> a button start a download to disk instead?
> >>
>I don't know if you can do that, but one work around is to zip the files and
>just do a get URL to the zip file. Most browsers will then just prompt to
>download the zip file. If the browser recognizes the format of the file, it
>may alway's try to open it itself. This is the only solution I know of so
>far. I'd also be interested in other alternatives.

You can link to a cgi (i.e. perl) script which writes an alternative mime
header in the http request. If you want a download area where opening
.jpg's would actually open a save to disc dialog you could add an binary
mime type header. unfortunately this does not work with IE >=5 anymore
because MS refers to some RFC where the standard procedure for handling
binary mime-types is to look at the file suffix and then use the browsers
internal suffix mapping. This means IE 5 would display a .jpg file no
matter what mime-header you send it with. Works fine with netscape though.

bye,
till



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: F5 What's wrong with this script?, Charles Goran

Replies
  Re: FLASH: What action to download to di, DRMRLPLS

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]