I would like to upload a file with the react-redux-universal-hot-example boilerplate.
On submit, the function below is called (managed by the ApiClient):
export function update(data) {
return {
types: [UPLOAD, UPLOAD_SUCCESS, UPLOAD_FAIL],
promise: (client) => client.post('/project/update', {
files: data
})
};
}
On the server side, the following function is called (managed by the Api):
export default function update(req, params) {
// get the file
}
Where are the file information located?