Hi Maxim,
FIleSystemResource does not support a file name by default, you have to
add it yourself:
protected ResourceResponse createResourceResponse(Path path) {
ResourceResponse response = super.createResourceResponse(path);
response.setFileName(path.getFileName());
return response;
}
Regards
Sven
On 12.04.2017 07:45, Maxim Solodovnik wrote:
Hello Tobias,
I'm trying to use FileSystemResource in latest wicket AjaxDownload
Unfortunately I see no easy way to set filename :(
It seems not to be taken from the Path passed ...
Could you please tell me how to do it?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]