Hi fellow WO-mavens,
I have a WOComponent for showing the content of a file out of a database
in a WOApp,
the code goes like this
public class DataShowFile extends WOComponent {
// some vars
public void appendToResponse(WOResponse aResponse, WOContext aContext) 8
// some checking etc.
aResponse.setContent(new NSData());
aResponse.setHeader(mimeType,"content-type");
}
}
OK, now if I have another WOComponent showing all the "files" in my
database, and I put a WOHyperlink with an action to return the
DataShowFile component to each of the "files" names, everything works
fine (the browser of the user downloads the file and opens it in the
right helper app), but the name of the new document is something like
16.3.9.0.3.3
This is a bit irritating for some users. Is there any way to fool WO
into giving back names to the browser like "SomeText.doc" instead of
16.3.9.0.3.3? Is there some header I could set?
puzzled,
-karsten