I have created a simple react app with just a upload button which accepts zip files.
function App() {
function fileCheck(event) {
console.log(event.target.files[0], "FILE");
}
return (
<div>
<div>
<label>Choose file</label>
<input
type="file"
accept=".zip"
onChange={(event) => {
fileCheck(event);
}}
/>
</div>
</div>
);
}
export default App;
Once file is uploaded, I need to see the contents/files which are inside that ip file. Is there a npm package or how to do this?