filestack-react icon indicating copy to clipboard operation
filestack-react copied to clipboard

Cancel upload when modal not visible

Open deblina-pattanayak opened this issue 3 years ago • 0 comments

As far as I know, there are 2 ways to cancel an ongoing upload

  1. cancel from the visible modal
  2. if using client.upload, then use the token param

But, there seems to be no way to cancel an upload if the modal has been hidden using hideModalWhenUploading to show a custom render. The only method exposed during custom render is onPick. For more clarification, I would like to trigger an upload cancel during this stage using the tiny cross button. image

Is there any way to cancel an upload for the above condition? If not, are there any plans to expose more functions to the custom render prop?

deblina-pattanayak avatar Jul 21 '22 05:07 deblina-pattanayak