mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
repair safari upload bug
This commit is contained in:
@@ -417,8 +417,13 @@ class FileUploader extends React.Component {
|
|||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
|
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
|
||||||
this.resumable.opts.target = res.data;
|
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 = () => {
|
onFolderUpload = () => {
|
||||||
@@ -426,8 +431,13 @@ class FileUploader extends React.Component {
|
|||||||
let repoID = this.props.repoID;
|
let repoID = this.props.repoID;
|
||||||
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
|
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
|
||||||
this.resumable.opts.target = res.data;
|
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 = () => {
|
onDragStart = () => {
|
||||||
|
Reference in New Issue
Block a user