# react-file-processor **Repository Path**: mirrors_skratchdot/react-file-processor ## Basic Information - **Project Name**: react-file-processor - **Description**: A React component for choosing files - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-file-processor [](http://badge.fury.io/js/react-file-processor) [](https://david-dm.org/skratchdot/react-file-processor) [](https://david-dm.org/skratchdot/react-file-processor#info=devDependencies) [](https://npmjs.org/package/react-file-processor) ## Description A React component that adds drag-and-drop functionality to the page it is included on. When files are dropped on the page, the onFileSelect() handler is called. You can also trigger a chooseFile() method on the FileProcessor instance to open the default browser's file picker. This is useful for styling your own file input button. ## Getting Started Install the module with: `npm install --save react-file-processor` ## Usage ```javascript import React, { Component } from 'react'; import FileProcessor from 'react-file-processor'; export default class MyApp extends Component { handleClick(e) { this.refs.myFileInput.chooseFile(); } handleFileSelect(e, files) { console.log(e, files); } render() { const self = this; return (