Default Directory for Cached Files


For the FileUp Object (ASP)

When you upload a file to the server, it is cached before you save it. On an ASP page, you can specify where you want to cache the file on the server, using SoftArtisans FileUp's Path property . The Pathproperty must be set before the script references any form elements, which would force the upload to be cached. The timing of caching is explained in more detail in the topic Understanding Permissions.

<%
Dim fileUpload
Set fileUpload = Server.CreateObject("SoftArtisans.FileUp")
fileUpload.Path = “C:\MyCachingDirectory�?
%>

If you do not assign a value to the Pathproperty, uploads will be cached in your system's default directory for cached files. Unless otherwise configured, the default directory is typically C:\winnt\tempor C:\temp. You can assign a different default directory for cached files by setting the TEMP environment as a system variable.

To set a default directory for cached files:

  1. Open the Control Panel.

  2. Select "System".

  3. Select the "Environment" tab.

  4. Activate the "System Variables" window by selecting one of the variables within it.

  5. At the bottom of the "Environment" window are two text boxes: "Variable" and "Value". In "Variable", enter TEMP. In "Value", enter the path you want to set as the default for cached files.

Copyright © 2010 SoftArtisans, Inc. All rights reserved.