Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 96 22:50 PST
From:      pete@pelican.com (Pete Carah)
To:        angio@aros.net
Cc:        questions@freebsd.org
Subject:   Re: Sending an exe or zip via HTML
Message-ID:  <m0ts2C0-0000SMC@pelican.com>
In-Reply-To: <199602272108.OAA26250@terra.aros.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199602272108.OAA26250@terra.aros.net> you write:
>
>Lo and behold, Dale once said:
>
>> Does anyone know why when I code an HTML A REF to allow a user to 
>> download a file (like an exe or a zip) only the code shows up on the 
>> screen rather than the usual Netscape (Save To DIsk) dialogue box?
>> 
>> Does this have something to do with the file's mode or ownership?
>> 
>> How do I code an HTML line to let a user download such a file?
>
>  It's a server configuration error.  The server needs to have a mime 
>type for .zip or .exe that tells it it's not a text file.  Typically it 
>would go in mime-types or as an AddType (with Apache) in srm.conf.

Apache comes with a mimetype for zip but NOT exe, even at 1.0.3.
Add exe to the line with .bin in it and all should be well.

>  .zip files should be application/zip  and .exe .. er, there's a good 
>question for you. :)

I use octet-stream (or whatever .bin goes to already).

.sit is already in there...  Of course, .exe is different on a VAX
(am I dating myself here?)

-- Pete



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0ts2C0-0000SMC>