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

@@ -148,7 +148,7 @@ class FileManagerFile extends Model
// Get file from external storage
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 = [
"ResponseAcceptRanges" => "bytes",