mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
update seafile-js api (#4405)
This commit is contained in:
@@ -80,7 +80,7 @@ class EditorUtilities {
|
||||
|
||||
uploadLocalImage = (imageFile) => {
|
||||
return (
|
||||
seafileAPI.getUploadLink(repoID, dirPath).then((res) => {
|
||||
seafileAPI.getFileServerUploadLink(repoID, dirPath).then((res) => {
|
||||
const uploadLink = res.data + '?ret-json=1';
|
||||
const name = getImageFileNameWithTimestamp();
|
||||
const newFile = new File([imageFile], name, {type: imageFile.type});
|
||||
|
Reference in New Issue
Block a user