Gets or sets the value that specifies path on a web server for storing uploaded files.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.2.0

Syntax

C#
public string SaveDirectlyTo { get; set; }
Visual Basic (Declaration)
Public Property SaveDirectlyTo As String

Field Value

Type: System..::.String
A String that defines path for storing an uploaded files. Default value is "".

Possible values:
  • Absolute system path. (ex: "C:\UploadedFiles")
  • Relative path. Application path will be used as a root folder. (ex: "\UploadedFiles")

Remarks

This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Environment ... SaveDirectlyTo="" ... >).
The logic of EAUpload component defines that all uploaded files are storred to temporary path and then can be saved by a script on a ASP.NET page. Use this property if you need to save uploaded files directly to specified location on a server. If value of this property is not an empty string, then all files will be stored to the specified path, and if this directory doesn't exist it will be created automaticaly. Names of files on client mashine will be used for saving on the server.

If property SaveDirectlyTo is not empty then property TemporaryPath is ignored.

Note:If you specify a name of existing folder you should grant 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 it at the Initializing stage or at the UploadState..::.Uploading stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information). Also if you have changed this property for the whole of EAUpload component (CommonEnvironment property), then new value will be used for the all processed and new uploads.

See Also