You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/08/20 05:47:34 UTC
[jira] Updated: (STR-2478) DownloadAction needs to be able to
specify the name of the file on the browser side
[ https://issues.apache.org/struts/browse/STR-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated STR-2478:
-------------------------------
Fix Version/s: 1.4.0
Assignee: (was: Struts Developers)
> DownloadAction needs to be able to specify the name of the file on the browser side
> -----------------------------------------------------------------------------------
>
> Key: STR-2478
> URL: https://issues.apache.org/struts/browse/STR-2478
> Project: Struts 1
> Issue Type: Improvement
> Components: Extras
> Affects Versions: 1.2.7
> Environment: Operating System: other
> Platform: Other
> Reporter: Jim Filreis
> Priority: Minor
> Fix For: 1.4.0
>
> Attachments: StreamInfo_modification.patch
>
>
> As the code is currently written the name of the file downloaded to the client
> machine is named FileDownload.do (or whatever the URL is).
> I believe the code needs something like this:
> response.setHeader("Content-Disposition", "attachment; filename=" +
> fileName);
> The user might want to control the filename, but personally I have been using
> the server-side name.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.