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