imagekit-developer / imagekit-react

React SDK for using ImageKit.io
https://imagekit.io
MIT License
102 stars 28 forks source link

How to know when an upload is in progress? #64

Closed baba43 closed 2 years ago

baba43 commented 2 years ago

We would like to show a spinner while the upload is in progress so that the user gets appropriate feedback.

Currently there is no way to do this and no good workaround, right?

I think the easiest way is to add an "onUploadStart" prop, which will be executed as soon as the upload starts internally.

Thanks.

imagekitio commented 2 years ago

Added in version 2.0.0. Use onUploadProgress prop and get the ProgressEvent