summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-01-26 16:17:18 +0100
committerDavid Lawrence <dkl@mozilla.com>2016-01-26 16:17:39 +0100
commit39d8526e3b986f42cce3d476319051238d5424e7 (patch)
tree8f7236f30a1a22068b8e80e832887050f9648e0c /docs
parentc68826577e4bb8014d5fe89e89d1d76b257125b9 (diff)
downloadbugzilla-39d8526e3b986f42cce3d476319051238d5424e7.tar.gz
bugzilla-39d8526e3b986f42cce3d476319051238d5424e7.tar.xz
Bug 1240752 - Attachment data submitted via REST API must always be base64 encoded
r=gerv,a=dkl
Diffstat (limited to 'docs')
-rw-r--r--docs/en/rst/api/core/v1/attachment.rst6
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 22a57af60..6c80651c1 100644
--- a/docs/en/rst/api/core/v1/attachment.rst
+++ b/docs/en/rst/api/core/v1/attachment.rst
@@ -140,7 +140,7 @@ To create attachment on a current bug:
"is_markdown" : true,
"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,
@@ -165,9 +165,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