Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
How to cancel File Upload - from Client, Server and UI
posted

Hi,

I am facing couple of issues relating to cancelling file upload:

1. The Cancel (X) button is not visible in the UI.

2. Returning false in js events igFileSelected or igFileUploading does not seem to cancel the file upload process.

Am I missing something? Also, I would like to know how to cancel a file upload from a server event. I am using WebUpload in mode "Single".

<ig:WebUpload ID="WebUpload1"

runat="server"

AutoStartUpload="true"

ShowFileExtensionIcon="true"

OnUploadFinished="WebUpload1_UploadFinished"

ClientEvents-FileUploaded="igFileUploaded"

ClientEvents-FileUploading="igFileUploading"

LabelAddButton="Upload File"

ClientEvents-FileSelected="igFileSelected"

onuploadstarting="WebUpload1_UploadStarting">

</ig:WebUpload>

 

function igFileSelected(sender, eventArgs)

{

      //Logic goes here based on eventArgs.filePath

return false;

}

function igFileUploading(sender, eventArgs)

{

//Logic goes here based on eventArgs.filePath

return false;

}

 

Awaiting reply,

Thanks,

Sharon

Parents Reply Children