1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

update upload link&add safair support (#3812)

* update upload link&add safair support

* update seafile-js version
This commit is contained in:
杨顺强
2019-07-08 13:16:01 +08:00
committed by Daniel Pan
parent e19696e63c
commit d207be56bc
4 changed files with 9 additions and 8 deletions

View File

@@ -418,7 +418,7 @@ class FileUploader extends React.Component {
this.uploadInput.current.removeAttribute('webkitdirectory');
let repoID = this.props.repoID;
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
this.resumable.opts.target = res.data;
this.resumable.opts.target = res.data + '?ret-json=1';
if (Utils.isIEBrower()) {
this.uploadInput.current.click();
}
@@ -432,7 +432,7 @@ class FileUploader extends React.Component {
this.uploadInput.current.setAttribute('webkitdirectory', 'webkitdirectory');
let repoID = this.props.repoID;
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
this.resumable.opts.target = res.data;
this.resumable.opts.target = res.data + '?ret-json=1';
if (Utils.isIEBrower()) {
this.uploadInput.current.click();
}
@@ -446,7 +446,7 @@ class FileUploader extends React.Component {
let repoID = this.props.repoID;
this.uploadInput.current.setAttribute('webkitdirectory', 'webkitdirectory');
seafileAPI.getUploadLink(repoID, this.props.path).then(res => {
this.resumable.opts.target = res.data;
this.resumable.opts.target = res.data + '?ret-json=1';
});
}