REST API for addAttachment ignores content type setting

XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? See the corresponding bug report.

      Using https://docs.atlassian.com/jira/REST/latest/#api/2/issue/{issueIdOrKey}/attachments-addAttachment.

      ...
      Content-Disposition: form-data; name="file"; filename="xxxx"
      Content-Type: application/octet-stream
      Content-Transfer-Encoding: binary
      ...
      

      However, JIRA returns

      "mimeType":"text/html"
      

      More specifically, it is impossible to add binary attachments that do not have a file extension since the mime type cannot be set.

            Assignee:
            Unassigned
            Reporter:
            Bob Swift
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: