1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

update api name (#4470)

* update api name

* update api name
This commit is contained in:
杨顺强
2020-03-06 14:19:48 +08:00
committed by GitHub
parent b39b71fdfc
commit 91a8bf9c24
5 changed files with 10 additions and 10 deletions

View File

@@ -79,7 +79,7 @@ class EditorUtilities {
uploadImage = (imageFile) => {
return (
seafileAPI.getUploadLink(repoID, dirPath).then((res) => {
seafileAPI.getFileServerUploadLink(repoID, dirPath).then((res) => {
let uploadLinkComponent = res.data;
const uploadLink = uploadLinkComponent + '?ret-json=1';
const name = getImageFileNameWithTimestamp();
@@ -102,7 +102,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 newFile = new File([imageFile], imageFile.name, {type: imageFile.type});
const formData = new FormData();