1
0
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:
杨顺强
2020-01-11 13:29:04 +08:00
committed by Daniel Pan
parent 450b23d0d9
commit c3dff6225f
7 changed files with 13 additions and 13 deletions

View File

@@ -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});