supposed you have an object "data" with data loaded from the desired
server file
you can build a WOResponse object and return it as result of a given direct
action.
r.setHeader(data.getMimetype(),"content-type");
r.setHeader("attachment;
filename=\""+data.getFilename()+"\"","content-disposition");
if(data.stringData != null) // data is in a string
r.appendContentString(data.stringData.toString());
else // data is in an NSData instance
r.appendContentData(data.getRawData());
Hi!
We use the same headers for download and that work just fine on
almost al borwsers and plattforms except for Safari 1.1 and IE5.2.3
on osx. We use content-type "application/octet-stream".
Any ideas how to solve this for Safari and IE on osx?
-Kaj :)
_______________________________________________
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.