Table of Contents
TempFileLocation Property

Gets or sets the folder that the uploader saves temporary files on web server.

Syntax
 public String TempFileLocation { get; set; }
Remarks

Unlike the standard ASP.NET HtmlInputFile control, EO.Web AJAXUploader does not read the entire uploaded file into memory. It streams the data into a temporary file on the server as the data is received. For this reason, TempFileLocation must be set for an AJAXUploader to function.

It is important that the ASP.NET worker process must have read/write permission to this folder.

Note: Several temporary files are created for each uploaded file. One of them is the actual uploaded file (whose file name is available through AJAXPostedFiles.TempFileName property), the rest are status files created during upload process.

EO AJAXUploader runs a sweeper on the background to automatically clean up these files. So it is not necessary for you to delete them. Typically you would move the uploaded file to a different location and rename the file while moving it. If you do not move the file away, it will be automatically deleted along with other temporary files sometime later. Note these files are not deleted immediately, instead the sweeper checks whether the files have been recently created or accessed, if they have, they will be skipped until they are "old" enough to be deleted.

You can also set FinalFileLocation. When FinalFileLocation is set, the uploader automatically moves uploaded files from TempFileLocation to FinalFileLocation once the uploading process is done.

See Also