'download attribute corrupt file name when using query string
I have a file called in the following way: /storage/1_aviary-image-1429352137570.jpeg?1646327099. Within the blade view I have created a download link:
<a href="{{ $item['url'] }}" class="btn btn-sm btn-default"
download="{{ $item['url'] }}" target="_blank">
<span class="fa fa-download"></span>
</a>
When I download the file, for some reason I get: _storage_1_aviary-image-1429352137570.jpeg_1646327099
As you can see the ? was replaced by _.
I have never encountered this problem, could someone help me to understand what's going on?
Kind regards
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
