download_file.md

December 23, 2023 ยท View on GitHub

Download file

You can use the Download method to download files after users request them on the view pages; the Download method has an input argument of the file path and can be accessed from all three sections: view, controller, and model.

Example:

Download("C:\\image.png");