Skip to content

Commit

Permalink
Merge pull request #198 from VeliovGroup/dev
Browse files Browse the repository at this point in the history
wtf? docs fix
  • Loading branch information
dr-dimitru authored Aug 24, 2016
2 parents 68f0c40 + 6b21f86 commit 7102053
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,17 @@ Upload base64 string (*introduced in v1.7.1*):
```js
// As dataURI
Images.insert({
file: 'data:image/png,base64str…,
file: 'data:image/png,base64str…',
isBase64: true, // <— Mandatory
fileName: pic.png // <— Mandatory
fileName: 'pic.png' // <— Mandatory
});

// As plain base64:
Images.insert({
file: 'base64str…,
file: 'base64str…',
isBase64: true, // <— Mandatory
fileName: pic.png, // <— Mandatory
type: image/png // <— Mandatory
fileName: 'pic.png', // <— Mandatory
type: 'image/png' // <— Mandatory
});
```

Expand Down
19 changes: 9 additions & 10 deletions docs/insert.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<pre><code>Images.insert({
file: 'data:image/png,base64str…’,
isBase64: true, // <— Mandatory
fileName: pic.png, // <— Mandatory
type: image/png
fileName: 'pic.png', // <— Mandatory
type: 'image/png'
});</code></pre>
</td>
</tr>
Expand Down Expand Up @@ -643,25 +643,24 @@ Template.uploadForm.events({
```javascript
// As dataURI
Images.insert({
file: 'data:image/png,base64str…,
file: 'data:image/png,base64str…',
isBase64: true, // <— Mandatory
fileName: pic.png // <— Mandatory
fileName: 'pic.png' // <— Mandatory
});

// As base64:
Images.insert({
file: 'image/png,base64str…,
file: 'image/png,base64str…',
isBase64: true, // <— Mandatory
fileName: pic.png // <— Mandatory
fileName: 'pic.png' // <— Mandatory
});
```

// As plain base64:
Images.insert({
file: 'base64str…,
file: 'base64str…',
isBase64: true, // <— Mandatory
fileName: pic.png, // <— Mandatory
type: image/png // <— Mandatory
fileName: 'pic.png', // <— Mandatory
type: 'image/png' // <— Mandatory
});
```

Expand Down

0 comments on commit 7102053

Please sign in to comment.