Browse Source

Fix upload try logic

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

2
components/upload/index.jsx

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

Loading…
Cancel
Save