Skip to content

Commit

Permalink
fix download
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Jul 4, 2022
1 parent eb1c3f7 commit dbd0a9d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/field.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

/*!
* Vue.js v2.6.14
* (c) 2014-2021 Evan You
* Vue.js v2.7.0
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/

Expand Down
6 changes: 5 additions & 1 deletion resources/js/components/buttons/LinkButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,14 @@ export default {
this.resetUploading();
this.removeFile();
let startPosition = response.data.url.lastIndexOf('/');
let filename = response.data.url.substr(startPosition + 1);
let attributes = {
href: response.data.url,
'tt-mode': 'file',
download: 'true',
download: filename,
};
this.setLink(attributes);
Expand Down

0 comments on commit dbd0a9d

Please sign in to comment.