Closed panigrah closed 7 years ago
I have example for uploading file. There is my action for sending file to API
const addFile = createAction(ActionTypes.FILE_ADD, fileInfo => ({
request : {
method: 'post',
url:'/files',
headers: {
'content-type': 'multipart/form-data'
},
data: fileInfo
}
}));
How do I upload a file using this middleware and also track upload progress? Does anybody have an example?