This commit is contained in:
2020-05-22 14:48:43 +00:00
parent bb9e2cd107
commit 5ae14aa7d3
4 changed files with 60 additions and 8 deletions

View File

@@ -261,9 +261,23 @@ export default {
return window.$gz.store.state.apiUrl + apiPath;
},
/////////////////////////////
// backup file download URL
//
backupDownloadUrl(fileName) {
//http://localhost:7575/api/v8/backup/download/100?t=sssss
let url =
"attachment/download/" +
fileName +
"?t=" +
window.$gz.store.state.downloadToken;
return this.APIUrl(url);
},
/////////////////////////////
// attachment download URL
//
downloadUrl(fileId, ctype) {
attachmentDownloadUrl(fileId, ctype) {
//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