Progressbar Oject code for File Upload HTTPModule ???

  • Thread starter Thread starter parthivjoshi
  • Start date Start date
P

parthivjoshi

Do anyone have the idea how to add progressbar to the existing HTTPModule and HTTPApplication for File Upload.


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
i dont think that would be possible. You wouldnt know when the file is
upload until its done, there is no postback inbetween that i know of.
 
Just some untested thought...

I think you could use Request.BinaryRead() to retrieve the data, then in the
process, write the "current byte read" to "Request.TotalBytes" to a file.

While the user click the button, call a javascript that will open another
window that will fetch the result from the progress file written on disk.
Call settimeout() to refresh in certain interval. In this way, no
server-side postback request is required.
 
Back
Top