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:
parent
7648f0747d
commit
c6d138026a
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user