[ 
https://issues.apache.org/jira/browse/WICKET-6460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150784#comment-16150784
 ] 

Sven Meier commented on WICKET-6460:
------------------------------------

You can specify a file name on the downloaded resource, see:

https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AjaxDownloadPage.java

> AjaxDownload should have method to provide downloaded file name
> ---------------------------------------------------------------
>
>                 Key: WICKET-6460
>                 URL: https://issues.apache.org/jira/browse/WICKET-6460
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 8.0.0-M6
>            Reporter: Jarosław
>
> Right now file downloaded using                
> {code}
>  org.apache.wicket.extensions.ajax.AjaxDownload#initiate(target)
> {code}
> downloads file with name like
> {code}
> 5e7f5bd1-d4dc-4350-ad05-e1aef94cf286.pdf
> {code}
> Could you please provide method giving the user ability to change the file 
> name according to RFC 5987 and also for browsers that do not support this:
> {code}
> Content-Disposition: attachment;
>                      filename="EURO rates";
>                      filename*=utf-8''%e2%82%ac%20rates
> {code}
> P.S. I think AjaxDownload class should be named AjaxDownloadBehavior - as all 
> behaviors are



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to