12-09-2020, 03:32 PM
I usually use Application.SendFile(). This is because it let's me build, find or otherwise prepare the file for download at that moment rather than having it already in place. Using SendFile() you can use any control that you can attach an event to. For example, a TIWButton or a TIWLink. Create an event handler for the click and inside the event handler, use the Application.SendFile() function. Note that SendFile() can send a file from anywhere, not just from the wwwroot folder.
Alternatively, you can use TIWURL and set its URL property to the folder with the file in it.
IW also has the ability to manage temp files, but I don't recommend that for videos because it will copy the file to a temp folder which is a costly operation.
Alternatively, you can use TIWURL and set its URL property to the folder with the file in it.
IW also has the ability to manage temp files, but I don't recommend that for videos because it will copy the file to a temp folder which is a costly operation.

