
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@kambing86/react-file-reader
Advanced tools
A flexible ReactJS component for handling styled HTML file inputs.
A flexible ReactJS component for handling styled HTML file inputs.
npm install react-file-reader --save
unique
element Id for the input elementboolean
to convert and return the files as a base64 string
array
of base64 strings
boolean
enforce single file or multiple file selectionimport ReactFileReader from 'react-file-reader';
handleFiles = files => {
console.log(files)
}
<ReactFileReader handleFiles={this.handleFiles}>
<button className='btn'>Upload</button>
</ReactFileReader>
When base64 is true, React File Reader returns a JS Object including both the base64 files and the HTML5 FileList. You can access their values at Object.base64 or Object.fileList
handleFiles = (files) => {
console.log(files.base64)
}
<ReactFileReader fileTypes={[".csv",".zip"]} base64={true} multipleFiles={true} handleFiles={this.handleFiles}>
<button className='btn'>Upload</button>
</ReactFileReader>
["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA", "data:image/png;base64,i..."]
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA..."
handleFiles = (files) => {
console.log(files.fileList)
}
Copyright (c)2017 Grillwork Inc. See LICENSE for details.
FAQs
A flexible ReactJS component for handling styled HTML file inputs.
The npm package @kambing86/react-file-reader receives a total of 0 weekly downloads. As such, @kambing86/react-file-reader popularity was classified as not popular.
We found that @kambing86/react-file-reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.