logo       

Re: serving dynamic binary files: msg#00169

web.mason.user

Subject: Re: serving dynamic binary files

Michael Alan Dorman <mdorman@xxxxxxxxxx> wrote:
> Jonathan Lang <dataweaver42@xxxxxxxxx> writes:
> > So far, I have successfully echoed a couple of HTML documents, a text
> > document, and a JPEG graphical image; when I tried echoing back a ZIP
> > file, I got its contents on the screen as if it was a text document.
> > Why is this?
>
> Given that it worked for other binary files, I would wonder whether
> your Apache config doesn't have a mime-type assignment for the .zip,
> and thus sends out a content type of text/plain or text/html.

I was explicitly setting the content-type of the downloading file to match
the content-type that I got from the uploading file.

=====
Jonathan "Dataweaver" Lang

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise