Display Transfer Rate

Sep 21, 2010 at 6:12 AM

Hi,

first of all thank you for this great controls - it helps me a lot.

The only thing that i want to ask is showing current speed of file uploading - is it possible to implement?

Coordinator
Sep 21, 2010 at 7:16 AM

Yes, it's possible to implement that.
All the info you need is there (Total Bytes, Total Bytes Sent) you'll only need to implement a timer yourself and then calculate the bytes / sec.

Michiel

Oct 1, 2010 at 3:34 PM

Thank you for information. I have one more question - is it possible to make cross-domain uploading? For example i have two sites: mysite.com and storage.mysite.com - will it work if this uploader will located on the first site and HttpUploadHandler.ashx will be placed on the second? of course httpHandlerName property will be changed to something like http://storage.mysite.com/HttpFileHandler.ashx...

Coordinator
Oct 2, 2010 at 7:04 AM

Yes, that can work.

Maybe you need to add a crossdomainpolicy.xml file to the server where you're uploading to.
See: http://msdn.microsoft.com/en-us/library/cc645032(VS.95).aspx

Oct 10, 2010 at 1:28 PM

Thanks, it works. But i've got one more error - uploader always shows that uploading failed, but i can't guess why? File is saving on server, but uploader still shows error. How does uploader determine that it need to show error message? I searched the code but no results...

Coordinator
Oct 10, 2010 at 1:34 PM

The uploader shows an error when the response of the HttpHandler is not OK.

Try debugging and see what's happening.