FileUpEE includes a server-side progress indicator that allows you to log and display the progress of an upload. Note that the progress indicator monitors the whole upload, and cannot watch the progress of an individual file within an upload. You can, however, monitor the progress of individual files by using XFileEE's client-side progress indicator.
FileUpEE's progress indicator can monitor uploads from client to web server, and from web server to file server. The progress from client to web server is measured as the number of bytes received on the web server. Progress from web server to file server is measured as the number of bytes sent from the web server; note that this is not proof of arrival on the file server.
The FileUpEE objects for ASP.NET are in the SoftArtisans.Net
namespace.
The objects can be referenced as fully qualified names, such as SoftArtisans.Net.FileUpEe
.
To minimize typing and errors, use an Import
directive to import the
namespace to the ASP.NET page. This allows you to reference objects by name alone,
without the namespace prefix. Add a reference to FileUpEE in ASP.NET by including
this statement at the top of your code behind page:
In C#:using SoftArtisans.Net;
In VB.NET:Imports SoftArtisans.Net
To create an instance of the progress object in an ASP.NET page, use:
In C#:FileUpEeProgress oFileUpEEProgress = new FileUpEeProgress();
In VB.NET:Dim oFileUpEEProgress As New FileUpEeProgress()
To create an instance of the progress indicator in an ASP page, use:
Set objFileUpProgress = Server.CreateObject("Softartisans.FileUpEEProgress")
Progress Indicator Properties | Progress Indicator Methods |
---|---|
Percentage | Dispose |
ProgressId | NextProgressID |
TotalBytes | |
TransferredBytes | |
Watch |
Progress Indicator Properties | |
---|---|
Percentage |
Syntax
objProgress.Percentage
Description
The
|
ProgressId |
Syntax
objProgress.ProgressId [=Progress Id]
Description
The |
TotalBytes |
Syntax
objProgress.TotalBytes
Description
The |
TransferredBytes |
Syntax
objProgress.TransferredBytes
Description
The
|
Watch |
Syntax
objProgress.Watch =SATransferStage
Description
The ExampleThe following is from the client script (upload form) in a 3-tier (client to web server to file server) upload: In ASP.NET:[C#]In ASP:
[VBScript]
|
Progress Indicator Methods | |
---|---|
Dispose |
Syntax
objProgress.Dispose
Description
When you are finished using an instance of the progress indicator under .NET, always
call Example[C#] |
NextProgressID |
Syntax
objProgress.NextProgressID
Description
Example
In ASP.NET:
Top
[C#]
|