Why do I get two widget buttons instead of one?

Here's what it looks like

If you added only one input element with role="uploadcare-uploader", but instead of one widget button you get two, the most liked reason for that is that the Uploadcare JS library is added twice. For example, if you use a bundler and installed the library via NPM, you might have installed it via the CDN as well. As a result, there will be two library instances, and each one will initialize the widget's input, so you'll get two buttons on the page. To fix this, simply remove one of the instances.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us