HTML Button for file download

Hello everyone,

I have this html table that shows the records for a database in my Raspberry Pi, and i need to download a video associated with the record entry. I can download the file using the link /files/filename, but i want this download to be associated with a button/hyperlink in the html table.


The table looks like this, and next to the "Localização" field i want either a button/hyperlink that will open new tab that with the link of /files/UID.h264, since UID is what i'm using to identify each video. The code for the html table is the following.

The problem is that i can't add the respective UID to the link, does anyone know any solution to my problem?

1 Like

Try <a href="/file/{{x.UID}}" target="_blank"> download log</a>

1 Like

This was it, thank you so much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.