Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 63
All Versions
'Cannot create temporary file' when trying to upload
When trying to upload using SA-FileUp, you may receive the error message
SoftArtisans.SAFile.1 error '80020009'

Cannot create temporary file.

This is generally an NT security issue. If the user context which IIS is using does not have the proper permissions to create files in the directory being used by SA-FileUp, you will receive that error message.

More information:
If you do not set your SoftArtisans.FileUp object's Path property properly, then SA-FileUp will use the Win32 GetTempDir() API call. Within the context of a service such as Internet Information Server, NT will return the system root as a temporary path. SA-FileUp will then attempt to create any necessary temporary files ("saNNNN.tmp") in that directory.

To find more out about the proper use of the Path property please visit Software Artisans Knowledge Base Article 8.

Ensure that the current user context utilized by IIS (typically IUSR_MachineName) has Read, Write and Delete permissions for the proper directory.
Created : 3/2/2004 5:30:49 PM (last modified : 3/2/2004 5:30:49 PM)
Rate this article!