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

    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

            People

              Unassigned Unassigned
              filreis@aol.com Jim Filreis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: