Skip to content

Commit

Permalink
Clarify the use of base-64 encoded String attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebest committed Dec 23, 2015
1 parent b6f074d commit 3e5f36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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`
}));
```

Expand Down

0 comments on commit 3e5f36f

Please sign in to comment.