This commit is contained in:
@@ -263,14 +263,22 @@ export default {
|
||||
/////////////////////////////
|
||||
// Attachment download URL
|
||||
//
|
||||
downloadUrl(fileId) {
|
||||
downloadUrl(fileId, ctype) {
|
||||
//http://localhost:7575/api/v8/Attachment/download/100?t=sssss
|
||||
return this.APIUrl(
|
||||
//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/" +
|
||||
fileId +
|
||||
"?t=" +
|
||||
window.$gz.store.state.downloadToken
|
||||
);
|
||||
fileId +
|
||||
"?t=" +
|
||||
window.$gz.store.state.downloadToken;
|
||||
|
||||
if (ctype && ctype.includes("image")) {
|
||||
url += "&i=1";
|
||||
}
|
||||
|
||||
return this.APIUrl(url);
|
||||
},
|
||||
/////////////////////////////
|
||||
// REPLACE END OF URL
|
||||
|
||||
Reference in New Issue
Block a user