【发布时间】:2017-07-18 07:58:28
【问题描述】:
我想上传一个带有 react-redux-universal-hot-example 样板的文件。
提交时,调用以下函数(由ApiClient管理):
export function update(data) {
return {
types: [UPLOAD, UPLOAD_SUCCESS, UPLOAD_FAIL],
promise: (client) => client.post('/project/update', {
files: data
})
};
}
在服务器端,调用以下函数(由Api管理):
export default function update(req, params) {
// get the file
}
文件信息在哪里?
【问题讨论】:
标签: javascript reactjs express react-redux redux-form