Skip to content

Commit

Permalink
Change Download File Name add URI Encode
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchuhmacher committed Jan 22, 2025
1 parent 0590262 commit 7040e38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/files/files-grid.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<i aria-hidden="true" class="fa fa-exclamation-triangle"></i>
</button>
{{else}}
<button data-href="/files/file?download=true&file={{../this._id}}&name={{../this.storageFileName}}"
<button data-href="/files/file?download=true&file={{../this._id}}&name={{encodeURI ../this.saveName}}"
class="file-btn"
data-testid="file-download-btn"
data-method="download"
Expand Down Expand Up @@ -159,4 +159,3 @@
{{> "files/forms/form-new-file"}}
{{/content}}
{{/embed}}

0 comments on commit 7040e38

Please sign in to comment.