fixed backblaze broken download link when filename contain space (Content Disposition header wasn't read properly with space)

This commit is contained in:
Peter Papp
2020-09-14 09:53:38 +02:00
parent 95f6695d00
commit 7ba2a3bec1
7 changed files with 9 additions and 12 deletions

View File

@@ -200,11 +200,8 @@
events.$emit('fileFullPreview:show')
}
if (this.isFile && !this.isPdf && !this.isVideo && !this.isAudio) {
this.$downloadFile(
this.data.file_url,
this.data.name + '.' + this.data.mimetype
)
if (this.isFile || !this.isFolder && !this.isPdf && !this.isVideo && !this.isAudio && !this.isImage) {
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
}
if (this.isFolder) {

View File

@@ -183,7 +183,7 @@ export default {
events.$emit('fileFullPreview:show')
}
if (this.isFile && !this.isPdf && !this.isVideo && !this.isAudio) {
if (this.isFile || !this.isFolder && !this.isPdf && !this.isVideo && !this.isAudio && !this.isImage) {
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
}