Extension to easily upload files in your application.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
src
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json

README.md

Focus file

master develop

Dependencies Status Dev Dependencies Status Peer Dependencies Status

Focus file addon. Uses DropzoneJS.

Usage

In your project, do the following :

npm i -D focus-file@latest

If your running on brunchJs, don't forget to copy the downloaded script to your vendor folder.

Once correctly added, the component will be available on the window as FocusFile.

Example

<FocusFile url='your/url'/>

Advanced usage

The component uses internally a store, fed with all the files dropped in the file upload, whatever the upload status was.

You can access this store with refToYourFocusFileComponent.props.store.

Adding DropzoneJS events

If you want to catch DropzoneJS events, you can access the Dropzone object through refToYourFocusFileComponent.dropzone.

Dependencies