Object: | SoftArtisans.FileUp | ||||||
Syntax: | TransferFile([in] Filename As String) | ||||||
Description: |
This method transfers (downloads) a file from the web server's hard disk to the browser. What differentiates this functionality from a simple GET request is that TransferFile takes a physical path for the file location, allowing files to be kept in a non-browsable location. The filename must contain the entire valid path. You can use Server.MapPath to map virtual roots to physical directories, if necessary; However, regardless of the path used, you must still have appropriate NTFS permissions for FileUp to retrieve the file from its location. Please see the section appropriate to your programming language in the Configuration and Application Settings section of this documentation set. Typically, in addition to using TransferFile, you would also set the appropriate Response headers to inform the browser how to handle the incoming file. For a detailed tutorial and complete code sample on using the TransferFile method, please see the "Getting Started" section appropriate to your programming language:
|
||||||
Examples: | |||||||
For a complete sample, see: |