ZNick1982 / uploadcare-npm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uploadcare Widget

Uploadcare is an IaaS for file uploads, cloud storage and on-the-fly image transformations.

This package contains HTML5 widget and JavaScript API:

Files

Uploadcare library, requiring jQuery as a dependency:

  • uploadcare.js
  • uploadcare.min.js

Standalone Uploadcare library with no external dependences:

  • uploadcare.full.js
  • uploadcare.full.min.js

How to use it

Add following code to header of your web page:

<script>
    // Widget settings
    UPLOADCARE_PUBLIC_KEY = 'your_public_key';
</script>
<script src="/node_modules/jquery/jquery.js" charset="utf-8"></script>
<script src="/node_modules/uploadcare-widget/uploadcare.min.js" charset="utf-8"></script>

Add the tag in the place where widget needs to be displayed:

<input type="hidden" role="uploadcare-uploader">

For more info, see Documentation

About


Languages

Language:JavaScript 100.0%