Class: SoftArtisans.FileUp

Property: TotalBytes

Type: String

Read Only

Description: This property displays the complete path and name of the uploaded file on the web server's hard disk.

Before a SaveAs or SaveAsBlob is executed, the ServerName property contains the location of the temporary cache file ued when processing uploads. After a SaveAs, ServerName displays the complete path and name of the final location of the file.

If there is more than one file being uploaded in a single page, only the first one will be displayed.

To examine the Server Name of multiple files in a single upload, there is an equivalent property for each file object, i.e. upl.Form("FILE1").ServerName.

Example:

<%
Set upl = Server.CreateObject("SoftArtisans.FileUp")
upl.Path = "c:\temp"
filename = "upload.tst"
Response.Write("The server's path for uploaded files is:" & upl.Path & "<BR>")
Response.Write("Saving the file to : " & filename & "<BR>")
on error resume next
'---
'--- Save the file now
'---
upl.SaveAs filename
if Err = 0 Then
	Response.Write("Upload saved successfully to " & upl.ServerName)
Else
... %>

The resulting ServerName with be 'c:\temp\upload.tst'