Gets or sets the value that specifies path on a web server, that will be used for temporary storing of an uploaded files.
Namespace:
EasyAlgo.EAUploadAssembly: EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.2.0
Syntax
| C# |
|---|
public string TemporaryPath { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property TemporaryPath As String |
Field Value
Type: System..::.StringA String that specifies path on the server, which will be used for temporary storing of an uploaded files.
Posible values:
- Absolute system path. (ex: "C:\Temp")
- Relative path. Application path will be used as a root folder. (ex: "\TempFolder")
Remarks
This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Environment ... TemporaryPath="" ... >).
The logic of EAUpload component defines that if property SaveDirectlyTo is not set, all of uploaded files are storred to the temporary directory. Its functionality allow to manage uploaded files: validate client file name, copy files to a various location etc.
Note:If you specify a name of existing folder you should grante access rights to the folder to the ASP.NET request identity.
ASP.NET has a base process identity (typically "{MACHINE}\ASPNET" on IIS 5 or "Network Service" on IIS 6/7) that is used if the application is not impersonating.
If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
Note:If you want to change this property at the runtime, you can define its at the Initializing stage or at the Uploading stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information).
Also if you have change this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property), then new value will take effect for the all processing and new uploads.
The logic of EAUpload component defines that if property SaveDirectlyTo is not set, all of uploaded files are storred to the temporary directory. Its functionality allow to manage uploaded files: validate client file name, copy files to a various location etc.
Examples
You can find an example in the description of UploadEnvironment class.
