The demos on this site are really terrible and largely useless.
All I am trying to do is to upload images files, and display progress of upload (both indvidual and overall).
Does anyone have a WORKING example of this? (C#) for the life of me, I cannot find ANY info on how to actually do this.
How do I query the progress of the current image file being uploaded?
When Uplaod Files Button Clicked:
foreach
(UploadedFile f in RadFileUpload1.UploadedFiles)
{
string fPath = string.Empty;
int i = 0;
i++;
fPath = Server.MapPath(
@"~\Scanned_Images") + @"\" + f.GetName();
f.SaveAs(fPath,
true);
/// Call some other loop here???????????
// RIGHT HERE - HOW DOES PROGRESS BAR GET REFRESHED AND DISPLAYED????????????????? HOW DO I QUERY THE STATUS OF EACH FILE BEING UPLOADED?
}
Private Void SomeOtherLoop
{
// something like this???????????
for
(int j = 0; j < 10000; j++)
{
context.CurrentOperationText =
"Uploading File " + j.ToString();
context.PrimaryTotal =
Convert.ToString(j); <===== how do I know % of file uploaded?
context.SecondaryPercent = context.PrimaryTotal; <===== how do I know % of file uploaded?
System.Threading.
Thread.Sleep(100);
}
}