Skip to content

Commit 2d93211

Browse files
jywarrenbevacqua
authored andcommitted
proposed docs for expected image upload JSON response (#43)
1 parent 3695d65 commit 2d93211

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

readme.markdown

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,16 @@ If you wish to set up file uploads, _in addition to letting the user just paste
225225
}
226226
```
227227

228+
`woofmark` expects a JSON response including a `results` property that's an array describing the success of each file upload. Each file's entry should include an `href` and a `title`:
229+
230+
```js
231+
{
232+
results: [
233+
{ href: '/images/new.jpg', title: 'New image' }
234+
]
235+
}
236+
```
237+
228238
For more information on file uploads, see [`bureaucracy`](https://github.com/bevacqua/bureaucracy).
229239

230240
### `options.attachments`

0 commit comments

Comments
 (0)