提交 fff4e01f 编写于 作者: A afc163

remove JSON format limit, close #1248

上级 7faeab67
......@@ -112,16 +112,11 @@ const AntUpload = React.createClass({
onSuccess(response, file) {
this.clearProgressTimer();
// 服务器端需要返回标准 json 字符串
// 否则视为失败
try {
if (typeof response === 'string') {
JSON.parse(response);
response = JSON.parse(response);
}
} catch (e) {
this.onError(new Error('No response'), response, file);
return;
}
} catch (e) {/* do nothing */}
let fileList = this.state.fileList;
let targetItem = getFileItem(file, fileList);
// 之前已经删除
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册