Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel upload when modal not visible #128

Open
deblina-pattanayak opened this issue Jul 21, 2022 · 0 comments
Open

Cancel upload when modal not visible #128

deblina-pattanayak opened this issue Jul 21, 2022 · 0 comments

Comments

@deblina-pattanayak
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant