diff --git a/frontend/src/components/file-uploader/file-uploader.js b/frontend/src/components/file-uploader/file-uploader.js index 26d4b21eee..da30a6ad22 100644 --- a/frontend/src/components/file-uploader/file-uploader.js +++ b/frontend/src/components/file-uploader/file-uploader.js @@ -417,8 +417,13 @@ class FileUploader extends React.Component { let repoID = this.props.repoID; seafileAPI.getUploadLink(repoID, this.props.path).then(res => { this.resumable.opts.target = res.data; - this.uploadInput.current.click(); + if (Utils.isIEBrower()) { + this.uploadInput.current.click(); + } }); + if (!Utils.isIEBrower()) { + this.uploadInput.current.click(); + } } onFolderUpload = () => { @@ -426,8 +431,13 @@ class FileUploader extends React.Component { let repoID = this.props.repoID; seafileAPI.getUploadLink(repoID, this.props.path).then(res => { this.resumable.opts.target = res.data; - this.uploadInput.current.click(); + if (Utils.isIEBrower()) { + this.uploadInput.current.click(); + } }); + if (!Utils.isIEBrower()) { + this.uploadInput.current.click(); + } } onDragStart = () => {