or
if (RadUpload.UploadedFiles.Count > 0)
{
uploadedFile = RadUpload.UploadedFiles[0];
totalSize = uploadedFile.ContentLength;
}
do
{
bytesRead = reader.Read(buffer, 0, readChunkSize);
ms.Write(buffer, 0, bytesRead);
processedSize += bytesRead;
percent = (int)((processedSize / totalSize) * 100);
progress["SecondaryTotal"] = total.ToString();
progress["SecondaryValue"] = percent.ToString();
progress["SecondaryPercent"] = percent.ToString();
progress["CurrentOperationText"] = fileReadingMsg;
} while (bytesRead != 0);