npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@uploadcare/file-uploader

v1.10.0

Published

Building blocks for Uploadcare products integration

Downloads

12,724

Readme

Uploadcare File Uploader

npm version GitHub Actions License minzipped size

Add file uploads to your app and configure behavior and appearance as needed. Process and transform files before and after uploading. Compatible with any framework or environment.

Features

  • Multiple upload sources: Drop files, select from the filesystem, use a link, camera, Dropbox, Google Drive, add them via the upload API, and more.
  • Large file handling: Upload faster with chunking, retries, and resumable uploads.
  • Customizable appearance: Use pre-built themes or modify styles with CSS to fit your project.
  • Responsive and cross-browser: Fits any device; supports the latest desktop and mobile versions of Chrome, Edge, Firefox, Opera, and Safari.
  • Fully accessible: A11Y options, including keyboard navigation, screen reader support, and color contrast settings.
  • Advanced image editing: Optimize images and apply smart transformations like cropping, resizing, or color filters via the built-in image editor, REST, or URL API.
  • Secure uploads: Protect your app by automatically detecting inappropriate content, malicious files, or unauthorized uploads.
  • Typescript support: Full Typescript support with autocompletion, type checking, and more for a better developer experience.

Framework support

Uploadcare File Uploader is built with Web Components, meaning you can integrate it into any environment—no adapters required.

For hands-on examples, visit our live sandboxes:

Check out the documentation for quickstart guides tailored to your framework or tool.

Explore more tutorials in our blog.

Quick Start

From CDN

  1. Connect File Uploader directly from your document:
<script type="module">
  import * as UC from 'https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/file-uploader.min.js';

  UC.defineComponents(UC);
</script>
  1. Add File Uploader in your application markup:
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.css"
/>

<uc-file-uploader-regular ctx-name="my-uploader"> </uc-file-uploader-regular>
  1. Configure File Uploader and add your personal public key to the project. Learn more.

From NPM

  1. Install the package: npm i @uploadcare/file-uploader
  2. Connect File Uploader from your script file:
import * as UC from '@uploadcare/file-uploader';

UC.defineComponents(UC);
  1. Add File Uploader in your application markup:
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.css"
/>

<uc-file-uploader-inline ctx-name="my-uploader"> </uc-file-uploader-inline>
  1. Configure File Uploader and add your personal public key to the project. Learn more.

Configuration

All configurations in File Uploader are managed from uc-config block.

  1. Sign up to Uploadcare.
  2. Get a Public API key in Uploadcare project's dashboard.
  3. Add a uc-config block to your markup and replace YOUR_PUBLIC_KEY with your own public key:
<uc-config ctx-name="my-uploader" pubkey="YOUR_PUBLIC_KEY"></uc-config>
  1. Make sure that your config uses the same ctx-name attribute value as your solution block.

Discover more about configuration options in our documentation.

Browser support

Latest desktop and mobile stable versions of Chrome, Edge, Firefox, Opera, and Safari are supported.

Internet Explorer is outdated and not supported anymore.

Contribution

You’re always welcome to contribute:

  • Create issues every time you feel something is missing or goes wrong.
  • Provide your feedback or drop us a support request at [email protected].
  • Ask questions on Stack Overflow with "uploadcare" tag if others can have these questions as well.
  • Fork project, make changes and send it as pull request. For launching the developing mode follow these commands:
    • Install dependencies: npm install.
    • Start local dev-server: npm run dev.
  • Star this repo if you like it ⭐️