Button to download a file

Joe5
Shopify Partner
16 0 1

 

I'm creating a button in my development for my subscriber to download a file like an Excel document; I store my file in "app/files/file.xlsx." When I click on the button, it shows "404 Not Found".  It works if I right click on the button to open link in new tab, and the file was downloaded in cloudflare.com


Code:

 

<Button fullWidth external download url="/app/files/file.xlsx">

 

Please help.
Replies 3 (3)

Joe5
Shopify Partner
16 0 1

Does anyone know? 😅

Joe5
Shopify Partner
16 0 1

😅Still waiting for an answer

Joe5
Shopify Partner
16 0 1

I hope my question will be answered even if someone will give me an idea on how to find a solution, thanks!