erikras / erikras/react-redux-universal-hot-example
apiclient.js accept attach and field per superagent for multipart and file upload
Open
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
The title says it all, I was thinking something like this:
```
export function upload() {
return {
types: [UPLOAD, UPLOAD_SUCCESS, UPLOAD_FAIL],
promise: (client) => client.get('/upload', {
attach: [{
key: '1',
value: {}
},{
key: '2',
value: 'another value'
}]
})
};
}
```
Contributor guide
Assessment
This issue has not been assessed yet.