erikras / erikras/react-redux-universal-hot-example

apiclient.js accept attach and field per superagent for multipart and file upload

Open
#998 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.