0
Reply

Uploading images using a web service

timhart

timhart

Jul 13 2005 8:58 AM
1.9k

Trying to use Asp.net to upload an image to the server.  I have used file field from element in aspx page and then button that calls c# code using formField.postedFile.saveas(...) function.  This (depending on file size) can be a massive (and unresponsive) delay. I realise there is no way to speed this up but I have been trying to come up with some way of letting the user know what is going on and disabling the button to stop the script from being re-run by the impatient user. I understand that the sort of threading that is done in a windows app is not applicable to a web app but wondered how the web page could be informed that the button has been clicked before the entire script runs.  Would this be done with a web service (i.e. using the beginMethod - endMethod methods)?  If so are there any scripts out there?

 

Hoping someone can help,

 

Tim Hart