Object: | SoftArtisans.SAFile | ||||||||||||
Syntax: | Path[= Physical Path As String] | ||||||||||||
Type: | String | ||||||||||||
Read/Write: | Read/Write | ||||||||||||
Description: |
This property, when used from the SAFile object defines the directory to which a file will be saved.
It is important to distinguish between the Path property of the FileUp object and the Path property of the SAFile object. In ASP, or in ASP.NET when the HttpModule is not used, the Path property of the FileUp object is used as the location to cache the upload Request. To be used effectively, it must be set before any of the form elements are referenced. In ASP or in ASP.NET, the path property of the FileUp object is set to determine the default directory to be used for saving the files. Setting the path property of the SAFile object cannot affect caching location, but it can be used to change the default saving location on a per-file basis. If no value is provided
|
||||||||||||
Examples: | |||||||||||||
Cache the upload on the web server at C:\Uploads and save the first uploaded file to C:\Uploads\MyFirstFile\.
Cache the upload to the web server and save the first uploaded file to a network shared drive:
|