1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-30 21:50:59 +00:00

repair safari upload bug

This commit is contained in:
shanshuirenjia 2019-06-18 11:59:47 +08:00
parent 7648f0747d
commit c6d138026a

View File

@ -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 = () => {