[lokisetup] makeself and browser downloads
chunky at icculus.org
Sat Apr 12 16:35:34 EDT 2003
On Sat, Apr 12, 2003 at 11:42:59AM -0700, John Quigley wrote:
> Many browsers treat makeself archives as text, and display them in the browser
> instead of allowing the user to save the file. I've tried various different
> extensions (.sh.run, .sh.bin), but no luck fixing it.
> The makeself readme says to add a content type to the web server, but I don't
> have access to the server in question. Is there other way to fix this?
If you don't have access to the web server in question, and it's using
magic to determine that mime type, you're screwed. Couple options:
1) Get over it. It's only a problem for people using broken browsers.
If you use lynx, wget, or friends, then the download works fine.
If you're using IE, NS or Moz, they're being helpful. d'oh.
2) If you can use cgi, use code like the following:
echo "Content-type: application/octet-stream"
echo "Content-disposition: attatchment; filename=foo.run"
exec cat foo.run
Hope that helps,
More information about the Lokisetup