From 3e5f36f375f3b355869d5f76a2193495d4547fac Mon Sep 17 00:00:00 2001 From: Stepan Stolyarov Date: Wed, 23 Dec 2015 11:28:02 +0600 Subject: [PATCH] Clarify the use of base-64 encoded String attachments --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2496ece..54622dd 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Attach new files by adding an `Ember.Object` with a `.name`, `.content_type` and myAlbum.get('photos').addObject(Ember.Object.create({ 'name': 'kitten.jpg', 'content_type': 'image/jpg', - 'data': data // ... can be a DOM File, Blob, or plain old String + 'data': btoa('hello world') // base64-encoded `String`, or a DOM `Blob`, or a `File` })); ```