Hi, I have a couple of question about the WebControl;
1. The web upload status handler IGUploadStatusHandler....
ProgressUrl="/IGUploadStatusHandler.ashx"
"/IGUploadStatusHandler.ashx"
"/IGUploadStatusHandler.ashx
<httpHandlers> <add verb="GET" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" path="IGUploadStatusHandler.ashx" /> </httpHandlers>
"GET"
"
"Infragistics.Web.UI.EditorControls.UploadStatusHandler"
"IGUploadStatusHandler.ashx"
2. Secondly, there is no server-side event when the upload is cancelled. Can anyone provide some advice on if and how we can call a server-side method from a JavaScript method?
3. Thirdly, the text which displays how many files have been uploaded (2 of 2 uploaded) doesn't seem to update when the uploads have been cleared. Is this a bug, or am I doing something wrong?
Any clarification on any of the above points would be much appreciated.
Many Thanks,
Nick
Hi Nick,
1. We have implemented HttpHandler and HTTPModule which are managing the server-side file upload and send information to the client about the file progress status. So you can check how to use our control in http://samples.infragistics.com/aspnet/Samples/WebUpload/Display/MultipleUpload/Default.aspx?cn=web-upload&sid=a8c69ee2-99e1-4512-938b-52c5d0b9cb6f
and how to configure it: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebUpload_Overview.html
More information about HttpModule and HttpHandler you can find it here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebUpload_HTTP_Module_and_Handler.html
HttpHandler has physical path and client side of WebUpload control uses this path to get information about status of uploading files and to send commands(like Cancel) to server-side. You shouldn't implement this handler yourselfe because we have done this for you.
2. Detailed description about server side events you can find here http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebUpload_HTTP_Module_and_Handler.html. The name of the event is UploadFinished. When file is cancelled or successfully uploaded this event is fired. Event arguments in this event are of type UploadFinishedEventArgs - there you can check FileStatus property (where you can check whether the upload is cancelled by the client). Also as you can see from the link abover there is 3 server-side events(when exactly they are fired you can check from the link above). About calling server-side methods from client side there are different techniques about this. We have made this in WebUpload control using AJAX calls.
3. This is feature of WebUpload - when you press "Clear Uploaded" button the history for uploaded files is cleared but number of uploaded files remains.
Regards, Miro Hristov