1 Reply Latest reply on Nov 19, 2010 4:05 AM by Ilya Shaikovsky

    Rich:fileUpload cancel all request JS method

    Balázs Németh Newbie

      hey there everybody,

       

      I have a rich:fileupload component in my app. The problem is the following: sometimes I hide the component for some reason and when the hide is done, I want to cancel all the file upload requests populated in the list, so before upload was fired.

      Is there a way to achieve that by calling a JS function?

      I tried clear() but as far as I know it's not a cancel method but the same as I would push the clear all button after the upload is complete.

      I tried remove() also but it looks like it only works for a single entry and not all entries.

       

      I though to myself, it has to be a solution hidden before my eyes, so I'd like to ask you to share that with me if it exists!

       

      Thanks in advance!

       

      cheers,

      balázs