mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-26 22:44:42 +00:00
fixed backblaze broken download link when filename contain space (Content Disposition header wasn't read properly with space)
This commit is contained in:
@@ -148,7 +148,7 @@ class FileManagerFile extends Model
|
|||||||
// Get file from external storage
|
// Get file from external storage
|
||||||
if (is_storage_driver(['s3', 'spaces', 'wasabi', 'backblaze'])) {
|
if (is_storage_driver(['s3', 'spaces', 'wasabi', 'backblaze'])) {
|
||||||
|
|
||||||
$file_pretty_name = get_pretty_name($this->attributes['basename'], $this->attributes['name'], $this->attributes['mimetype']);
|
$file_pretty_name = is_storage_driver('backblaze') ? Str::slug(get_pretty_name($this->attributes['basename'], $this->attributes['name'], $this->attributes['mimetype'])) : get_pretty_name($this->attributes['basename'], $this->attributes['name'], $this->attributes['mimetype']);
|
||||||
|
|
||||||
$header = [
|
$header = [
|
||||||
"ResponseAcceptRanges" => "bytes",
|
"ResponseAcceptRanges" => "bytes",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'version' => '1.7.10.1',
|
'version' => '1.7.10.2',
|
||||||
|
|
||||||
// Define size of chunk uploaded by MB. E.g. integer 128 means chunk size will be 128MB.
|
// Define size of chunk uploaded by MB. E.g. integer 128 means chunk size will be 128MB.
|
||||||
'chunk_size' => env('CHUNK_SIZE', '128'),
|
'chunk_size' => env('CHUNK_SIZE', '128'),
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"/chunks/files~chunks/shared-files~chunks/shared-page~chunks/trash.js": "/chunks/files~chunks/shared-files~chunks/shared-page~chunks/trash.js?id=adad12e7b42316bdd659",
|
"/chunks/files~chunks/shared-files~chunks/shared-page~chunks/trash.js": "/chunks/files~chunks/shared-files~chunks/shared-page~chunks/trash.js?id=f6516382dbfcb5d4b6c3",
|
||||||
"/js/main.js": "/js/main.js?id=56929a5bd004d4b75bea",
|
"/js/main.js": "/js/main.js?id=6ba46d7595be5466ade3",
|
||||||
"/css/app.css": "/css/app.css?id=dbf49843b327d3936c06",
|
"/css/app.css": "/css/app.css?id=dbf49843b327d3936c06",
|
||||||
"/chunks/admin.js": "/chunks/admin.js?id=5bd95ece632ca142f035",
|
"/chunks/admin.js": "/chunks/admin.js?id=5bd95ece632ca142f035",
|
||||||
"/chunks/admin-account.js": "/chunks/admin-account.js?id=b181a9ba45f475b9e004",
|
"/chunks/admin-account.js": "/chunks/admin-account.js?id=b181a9ba45f475b9e004",
|
||||||
|
|||||||
@@ -200,11 +200,8 @@
|
|||||||
events.$emit('fileFullPreview:show')
|
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.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
|
||||||
this.data.file_url,
|
|
||||||
this.data.name + '.' + this.data.mimetype
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isFolder) {
|
if (this.isFolder) {
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ export default {
|
|||||||
events.$emit('fileFullPreview:show')
|
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)
|
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user