This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user