mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
update seafile-js api (#4405)
This commit is contained in:
@@ -38,7 +38,7 @@ class GenerateUploadLink extends React.Component {
|
||||
getUploadLink = () => {
|
||||
let path = this.props.itemPath;
|
||||
let repoID = this.props.repoID;
|
||||
seafileAPI.getUploadLinks(repoID, path).then((res) => {
|
||||
seafileAPI.getUploadLink(repoID, path).then((res) => {
|
||||
if (res.data.length !== 0) {
|
||||
let sharedUploadInfo = new UploadLink(res.data[0]);
|
||||
this.setState({sharedUploadInfo: sharedUploadInfo});
|
||||
|
Reference in New Issue
Block a user