Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

file-upload-client-component

calvinfroedge2MIT0.0.3

A simple API for handling file uploads

file, uploads, browser, only, file, upload, client, upload

readme

FileUploadClient Component

This component handles just the upload part for building applications like a client-side image editor, audio manager, etc. It provides a simple upload callback:

  var c = new FileUploadClientComponent({
    attachTo: $('#container'),
    events: {
      onUpload: function(files){
        console.log('files are', files);
      }
    }
  });

You can also customize the following via options:

  • headingText
  • allowMultiple (set to true to allow multiple file upload)