RadUpload Ajax callback error
The error is intermittent and occur before progressbar is visible.
It's a customer’s production server that I have no access to, so I have no server logs available etc. It look likes the response time is slow. Compare with other installations the time between I submit a file and to the progress is displayed is longer.
Is it possible that UploadedFile property ContentLength return 0?
if (RadUpload.UploadedFiles.Count > 0)
uploadedFile = RadUpload.UploadedFiles;
totalSize = uploadedFile.ContentLength;
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);