Hi,
I am uploading a file using html fileUpload and writing the bytes using while loop as below.
while ((tripDownloadSize = stream.Read(b, 0, 51200)) > 0)
{
fs.Write(b, 0, tripDownloadSize);
totalDownloadedSize += tripDownloadSize;
Percentage = (int)(totalDownloadedSize * 100) / totalUploadSize;
setProgressBar(id, Percentage.ToString());
System.Threading.Thread.Sleep(100);
isNewFile = false;
}
PrgressBar is perfect. but I wanted put a cancel button to stop uploading and delete the uploaded file(how much ever is uploaded) .
I am following http://www.codeproject.com/Articles/106511/Multiple-file-uploads-with-progress-bar-using-clas
I need some help. Its urgent.
Regards,
Akshay
Go to the complete details ...