uppy/packages/@uppy/file-input
Renée Kooi fb053444f1 pin preact to 8.2.9 (#1513)
Webpack likes to pick the ES module versions of modules over CJS
versions. So, if we do `require('preact')`, we can get the ES module
version of it. preact in version 8.3.0 switched its file extension
from `.esm.js` to `.mjs`, which in webpack's default configuration meant
the module implementation became much stricter. The result is that we
get a different value in `require('preact')`.

This older version of preact doesn't use `.mjs` yet so we can safely
`require('preact')` it in webpack. It still picks the ESM version, but
now it uses the looser implementation which is interchangeable for our
purposes.
2019-05-01 15:06:44 +02:00
..
src Default locale for all plugins (#1443) 2019-04-17 13:34:23 +02:00
types Use export = in @uppy/core typings. 2018-12-20 14:51:42 +01:00
LICENSE Move FileInput plugin to @uppy/file-input. 2018-06-14 11:14:02 -04:00
package.json pin preact to 8.2.9 (#1513) 2019-05-01 15:06:44 +02:00
README.md docs: update webpack homepage URLs 2019-03-04 13:43:37 +01:00

@uppy/file-input

Uppy logo: a superman puppy in a pink suit

Build Status

FileInput is the most barebones UI for selecting files—it shows a single button that, when clicked, opens up the browsers file selector.

Read the docs | Try it

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

const Uppy = require('@uppy/core')
const FileInput = require('@uppy/file-input')

const uppy = Uppy()
uppy.use(FileInput, {
  // Options
})

Installation

$ npm install @uppy/file-input --save

We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.

Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case Uppy will attach itself to the global window.Uppy object. See the main Uppy documentation for instructions.

Documentation

Documentation for this plugin can be found on the Uppy website.

License

The MIT License.