Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fileReader.onload = async e => {
rawFiles.push({ path: file.name, content: Buffer.from(e.target.result) })
addAndRender()
}
fileReader.onload = e => {
setFiles(files.concat({ path: file.name, content: Buffer.from(e.target.result) }))
}
fileReader.readAsArrayBuffer(file)