This commit is contained in:
2020-05-13 22:42:55 +00:00
parent 6e41dad1b0
commit 8c5d2f1e1d
6 changed files with 15 additions and 15 deletions

View File

@@ -261,15 +261,15 @@ export default {
return window.$gz.store.state.apiUrl + apiPath;
},
/////////////////////////////
// Attachment download URL
// attachment download URL
//
downloadUrl(fileId, ctype) {
//http://localhost:7575/api/v8/Attachment/download/100?t=sssss
//http://localhost:7575/api/v8/attachment/download/100?t=sssss
//Ctype is optional and is the MIME content type, used to detect image urls at client for drag and drop ops
//in wiki but ignored by server
let url =
"Attachment/download/" +
"attachment/download/" +
fileId +
"?t=" +
window.$gz.store.state.downloadToken;
@@ -445,7 +445,7 @@ export default {
body: data
};
fetch(that.APIUrl("Attachment"), fetchOptions)
fetch(that.APIUrl("attachment"), fetchOptions)
.then(that.status)
.then(that.json)
// eslint-disable-next-line