Object: | SoftArtisans.SAFile | ||||||
Syntax: | ServerName | ||||||
Type: | String | ||||||
Read/Write: | Read Only | ||||||
Description: |
This property displays the complete path and name of the uploaded file on the web server's file system. Before a Save, SaveAs, or SaveAsBlob is executed, the ServerName property contains the location of the temporary cache file used when processing uploads. After a Save, SaveAs, or SaveAsBlob, ServerName displays the complete path and name of the final location of the file. The cache filename is always guaranteed to be unique. You can use the .ServerName property to generate a unique name when saving the file. The cache file's name is of the form saNNNN.tmp, where NNNN is a unique number. See Example 2, below. If you intend to only upload one file, your code may be made more brief using the ServerName property of the FileUp object. Please see: SAFileUp.ServerName |
||||||
Examples: | |||||||
Use the ServerName property to report back the name and path of the file as it was finally saved on the server. In this example, the resulting ServerName will be 'C:\Temp\upload.tst'.
|