Change to relative path and /var/attachments to store

This commit is contained in:
Romulus Urakagi Tsai 2020-01-14 06:29:34 +00:00
parent 6ebd6defe9
commit d26bf04bfa
5 changed files with 31 additions and 27 deletions

View file

@ -47,7 +47,7 @@ Template.attachmentsGalery.events({
Template.attachmentsGalery.helpers({
url() {
return Attachments.link(this);
return Attachments.link(this, 'original', '/');
},
isUploaded() {
return !!this.meta.uploaded;
@ -62,7 +62,7 @@ Template.previewAttachedImagePopup.events({
Template.previewAttachedImagePopup.helpers({
url() {
return Attachments.link(this);
return Attachments.link(this, 'original', '/');
}
});