O__download
Purpose: Downloads the desired file to the end user.
Type: Server-side function
Inputs:
- $O__path: The path to the file to be downloaded.
Outputs: Once called, the targeted file will be presented to the end user as a download through their browser.
Use Case: O__download must be called through the header. As an alternative to the native download capability within a browser, it can be useful in providing a download without revealing the storage location of a file, which may or may not reside within the server's web root.
Examples:
- Place this within the header: O__download("/path/to/my/file.txt");
Version Documented: 20181010