How to render a formatted output using HTML?

Reply

Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: How to render a formatted output using HTML?

 
0
  #11
Feb 13th, 2007
If you just 'return' a stored zip file or other file to a browser, you don't have to do anything. For example, if a user visits:

http://www.example.com/example.zip

The zip file will ordinarily be handled by the browser's MIME configuration, and the user will be allowed to download it.

However. If your server's MIME handler configuration is messed up, then the server might try to process the file internally, or send the file as if it were page content. You'd have to talk to your hosting provider or look in your server software manual and tell the server NOT try to try to handle zip files, but send them with a valid MIME type.

If you're 'creating' zip data and sending it back from a request, you would need to specify a Content-Type header that described the content =P
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3942 | Replies: 10
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC