[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] correct mime type for .exe with MSIE
> > I am trying to find out how to make MSIE download a .exe file with the
> > extension intact. Using the IC built in file delivery mechanism, it feeds
> > the file directly to the browser, and for some reason MSIE prompts you to
> > download the file without the extension. This is using
> > application/octet-stream as the mime type. What it looks like is that
> > MSIE can't determine what type of file it is, and therefore can't
> > determine what extension to give it. Since the content is fed directly to
> > the browser it doesn't have a filename in the url to go by. If you give
> > it a mime type it knows an extension for it will name that file with that
> > extension. Problem is there is no specific mime type for .exe that I know
> > of. Netscape and Opera seem to work fine...
On Wed, 10 Apr 2002, Jonathan Clark wrote:
>
> AFAIK a .exe is just an application/octet-stream. Are you specifying the
> filename in the header?
>
> In a custome download routine I do:
>
> [tag op=header interpolate=1]
> Content-type: application/octet-stream
> Content-disposition: inline; filename=[scratch file_name]
> Content-length: [scratch file_size]
> [/tag]
>
> ..which works fine for MSIE.
Great that was what I was missing. After I added Content-disposition to
the header it works fine. Maybe someone at Redhat could take a note to
add this modification to pages/deliver.html?
Chris
>
> Jonathan
> Webmaint.
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>