Remove filename from download attachments url

XMLWordPrintable

    • 19
    • 12

      Issue Summary

      An attachment is unable to be downloaded if it has certain HTML unsafe characters in the filename. Ideally, the filename would not be in the download attachments url so that this would not matter.

      Steps to Reproduce

      1. Create a file with an unsafe character in the name like a semicolon ";" or "\", as for instance "test1;test2.txt"
      2. Attach this attachment to a page.
      3. Go to the attachments by clicking ... > Attachments on the page.
      4. Try to download the attachment by clicking on it.

      Expected Results

      The attachment is downloaded successfully.

      Actual Results

      The attachment download isn't working and fails with a 400 Bad Request error. With other characters, it may fail with a Not Found error.

       

      Workaround

      Rename the attachment name by deleting the unsafe character with the following steps:

      1. Go to the attachments section.
      2. Click properties for the attachment.
      3. Delete character(s) from the next of "File Name" section.

         

            Assignee:
            Unassigned
            Reporter:
            Clarissa Qian (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: