diff options
author | David Lawrence <dkl@mozilla.com> | 2016-01-27 05:12:26 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-01-27 05:12:26 +0100 |
commit | 4d112f865c2095e7f241b576cf1d611b58056054 (patch) | |
tree | 22cd2e16b498958662d6b0c4565170a80eb588b8 /docs/en/rst | |
parent | 1912ffe61ccaef383976a8dcfb297faf2a4a27e3 (diff) | |
download | bugzilla-4d112f865c2095e7f241b576cf1d611b58056054.tar.gz bugzilla-4d112f865c2095e7f241b576cf1d611b58056054.tar.xz |
Bug 1243246 - Attachment data submitted via REST API must always be base64 encoded
Diffstat (limited to 'docs/en/rst')
-rw-r--r-- | docs/en/rst/api/core/v1/attachment.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/en/rst/api/core/v1/attachment.rst b/docs/en/rst/api/core/v1/attachment.rst index f89b6c23e..70e4c25fd 100644 --- a/docs/en/rst/api/core/v1/attachment.rst +++ b/docs/en/rst/api/core/v1/attachment.rst @@ -139,7 +139,7 @@ To create attachment on a current bug: "comment" : "This is a new attachment comment", "summary" : "Test Attachment", "content_type" : "text/plain", - "data" : "(Some patch content)", + "data" : "(Some base64 encoded content)", "file_name" : "test_attachment.patch", "obsoletes" : [], "is_private" : false, @@ -164,9 +164,7 @@ name type description **ids** array The IDs or aliases of bugs that you want to add this attachment to. The same attachment and comment will be added to all these bugs. -**data** string The content of the attachment. If the content of the - attachment is not ASCII text such as - ``application/octet-stream`` you must encode it in +**data** base64 The content of the attachment. You must encode it in base64 using an appropriate client library such as ``MIME::Base64`` for Perl. **file_name** string The "file name" that will be displayed in the UI for |