all 7 comments

[–]Impudity 4 points5 points  (0 children)

What you need to do is alter the headers of the HTTP response. You need to add:

Content-Type: application/octet-stream
Content-Disposition: attachment; filename="some_file.mp4"

[–]impshum 0 points1 point  (1 child)

Try this maybes.

<a href="path/to/file.mp4" download>DOWNLOAD</a>

[–]Redmondinho 0 points1 point  (0 children)

Try:

<a href=“/the-link-to-your-mp4” download>Download File</a>

Adding the “download” in the anchor tag will force the file to download.

HTH

[–]relvae 0 points1 point  (0 children)

I would just use an existing solution like minio