• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File download


  • Subject: Re: File download
  • From: Art Isbell <email@hidden>
  • Date: Tue, 6 Apr 2004 18:24:03 -1000

On Apr 6, 2004, at 4:37 PM, email@hidden wrote:

However, Safari still displays the
content in the browser as plain text instead of saving it to a file.

     public void appendToResponse(WOResponse aResponse, WOContext
aContext) {
         aResponse.appendContentString(string);
         aResponse.setHeader("text/comma-separated-values",
"Content-Type");

Try "application/octet-stream", or "application/vnd.ms-excel" if you want to give a hint to open the file in Excel.


Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >File download (From: email@hidden)

  • Prev by Date: File download
  • Next by Date: XHTML & WO
  • Previous by thread: File download
  • Next by thread: Re: File download
  • Index(es):
    • Date
    • Thread