use html to download a file from server code example Example: html link to download file <a href="the/name/of/your/file.x" download>