Class: SoftArtisans.SAFile

Property: Path

Type: String

Read/Write

Description: This property defines the default directory for storing files. It also defines the location of the cache files before a final save is executed.

By setting the Path in the FileUp object (e.g. upl.Path), it is set automatically for all SAFile objects (objFile.Path).

SA-FileUp must be able to write into this directory.

For this property to have effect, it must be set before any form elements are referenced. Once the first form element is referenced, the entire HTTP Post stream must be read and the uploaded files included in the stream must be cached.

If no value is set, SA-FileUp will use the system-defined Temporary Path (which is returned by the WIN32 GetTempPath() routine). Typically, this is "C:\TEMP".

Example:

<%
set objFile = Server.CreateObject("SoftArtisans.SAFile")
objFile.Path "d:\tempdir"
objFile.CreateTemp NewTempFilename
... %>