If you’re up to manually installing Uploadcare Widget, you’re free to choose one from the install methods listed below,
Please refer to our libraries and integrations for some ready-made solutions.
Uploadcare Widget does not have any external dependencies except for jQuery. We provide two different versions of our widget: with built-in jQuery and without it. See the types of existing widget bundles for more info.
For instance, with the jQuery-enabled widget version you could go like,
var $ = uploadcare.jQuery; $('body').append('It works!');
There are a few types of js bundles:
uploadcare.full.js— a full bundle with built-in jQuery,
uploadcare.js— a bundle without built-in jQuery,
uploadcare.ie8.js— a full bundle with built-in jQuery 1.x for IE 8 support (widget v. 2.x and below),
uploadcare.lang.en.js— a bundle without built-in jQuery,
Each bundle has its minified version. Just add
uploadcare.min.js is exported to NPM and other package managers.
Embed the file uploader client library using the
<script> element in the
<head> section of each page where you’d like the widget to show up.
This CDN link, for instance, embeds the widget version with built-in jQuery,
<script src="https://ucarecdn.com/libs/widget/3.x/uploadcare.full.min.js" charset="utf-8"></script>
You might also happen to already use jQuery on your page. In this case, consider loading the light widget version without built-in jQuery,
<script src="https://code.jquery.com/jquery-3.4.1.min.js" charset="utf-8"></script> <script src="https://ucarecdn.com/libs/widget/3.x/uploadcare.min.js" charset="utf-8"></script>
npm install uploadcare-widget
import uploadcare from 'uploadcare-widget'