Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2478

DownloadAction needs to be able to specify the name of the file on the browser side

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.7
    • 1.4.x
    • Extras
    • None
    • Operating System: other
      Platform: Other
    • 35089

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            filreis@aol.com Jim Filreis

            Dates

              Created:
              Updated:

              Slack

                Issue deployment