Browse Source

Fix upload try logic

pull/344/head
afc163 9 years ago
parent
commit
6474cb378b
  1. 4
      components/upload/index.jsx

4
components/upload/index.jsx

@ -62,7 +62,9 @@ const AntUpload = React.createClass({
// json
//
try {
JSON.parse(response);
if (typeof response === 'string') {
JSON.parse(response);
}
} catch (e) {
this.onError(new Error('No response'), response, file);
return;

Loading…
Cancel
Save