|
|
@ -84,8 +84,6 @@ export default class Upload extends React.Component { |
|
|
|
} |
|
|
|
|
|
|
|
onStart = (file) => { |
|
|
|
if (this.recentUploadStatus === false) return; |
|
|
|
|
|
|
|
let targetItem; |
|
|
|
let nextFileList = this.state.fileList.concat(); |
|
|
|
if (file.length > 0) { |
|
|
@ -182,11 +180,6 @@ export default class Upload extends React.Component { |
|
|
|
this.handleRemove(targetItem); |
|
|
|
} |
|
|
|
|
|
|
|
beforeUpload = (file) => { |
|
|
|
this.recentUploadStatus = this.props.beforeUpload(file); |
|
|
|
return this.recentUploadStatus; |
|
|
|
} |
|
|
|
|
|
|
|
handleRemove(file) { |
|
|
|
let fileList = this.removeFile(file); |
|
|
|
if (fileList) { |
|
|
@ -242,7 +235,7 @@ export default class Upload extends React.Component { |
|
|
|
onError: this.onError, |
|
|
|
onProgress: this.onProgress, |
|
|
|
onSuccess: this.onSuccess, |
|
|
|
beforeUpload: this.beforeUpload, |
|
|
|
beforeUpload: this.props.beforeUpload, |
|
|
|
}; |
|
|
|
let uploadList; |
|
|
|
if (this.props.showUploadList) { |
|
|
|