diff --git a/frontend/src/components/files/Preview.vue b/frontend/src/components/files/Preview.vue index c96fc7bb..714c34fe 100644 --- a/frontend/src/components/files/Preview.vue +++ b/frontend/src/components/files/Preview.vue @@ -105,7 +105,7 @@ export default { return `${baseURL}/api/raw${this.req.path}?auth=${this.jwt}`; }, compress() { - if (this.type === 'image') { + if (this.req.type === 'image') { return `${baseURL}/api/compress${this.req.path}?auth=${this.jwt}`; } else { return `${baseURL}/api/raw${this.req.path}?auth=${this.jwt}`;