diff --git a/components/upload/index.jsx b/components/upload/index.jsx index 3ec2a8403a..316df0aab8 100644 --- a/components/upload/index.jsx +++ b/components/upload/index.jsx @@ -173,12 +173,13 @@ export default class Upload extends React.Component { this.handleRemove(targetItem); } - beforeUpload(file) { + beforeUpload = (file) => { + console.log(this.props); this.recentUploadStatus = this.props.beforeUpload(file); return this.recentUploadStatus; } - handleRemove(file) { + handleRemove = (file) => { let fileList = this.removeFile(file); if (fileList) { this.onChange({