remove JSON format limit, close #1248

This commit is contained in:
afc163 2016-03-23 18:35:35 +08:00
parent 7faeab678e
commit fff4e01f14

View File

@ -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);
//