Gathering detailed insights and metrics for react-file-reader-input
Gathering detailed insights and metrics for react-file-reader-input
Gathering detailed insights and metrics for react-file-reader-input
Gathering detailed insights and metrics for react-file-reader-input
React file input component for complete control over styling and abstraction from file reading.
npm install react-file-reader-input
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
119 Stars
48 Commits
27 Forks
7 Watchers
2 Branches
6 Contributors
Updated on Jul 11, 2025
Latest Version
2.0.0
Package Id
react-file-reader-input@2.0.0
Size
6.17 kB
NPM Version
5.5.1
Node Version
8.9.1
Published on
May 25, 2018
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
19
React file input component for complete control over styling and abstraction from file reading.
buffer
, binary
, url
, text
). Defaults
to url
.children
. Whenever the custom children
are
clicked, the component will trigger the native file input prompt. This
allows complete control over styling an display.function(event, results)
.
Results will be an array of arrays, the size of which depending on how many
files were selected. Each result will be an array of two items:
result[0]
is a
ProgressEvent
object. You can retrieve the raw results at
progressEvent.target.result
among other things.result[1]
is a
File object. You can
retrieve the file name at file.name
among other things.All other props on FileReaderInput
will be passed down to the native file
input.
1import React from 'react'; 2import FileReaderInput from 'react-file-reader-input'; 3 4 5class MyComponent extends React.Component { 6 handleChange = (e, results) => { 7 results.forEach(result => { 8 const [e, file] = result; 9 this.props.dispatch(uploadFile(e.target.result)); 10 console.log(`Successfully uploaded ${file.name}!`); 11 }); 12 } 13 render() { 14 return ( 15 <form> 16 <label htmlFor="my-file-input">Upload a File:</label> 17 <FileReaderInput as="binary" id="my-file-input" 18 onChange={this.handleChange}> 19 <button>Select a file!</button> 20 </FileReaderInput> 21 </form> 22 ); 23 } 24}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/18 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
115 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@types/react-file-reader-input
TypeScript definitions for react-file-reader-input
react-csv-reader
React component that handles csv file input.
@brainhubeu/react-file-input
⚛️ A file Input, width drag'n'drop and image editor for React
react-simple-file-reader-input
React file input component for complete control over styling and abstraction from file reading.