Closed renanmachad closed 2 years ago
Hello, you should be able to handle that easily in the onDrop
function, something like this should work:
onDrop={(files, event) => {
const jsFiles = files.filter(file => file.name.endsWith('.js'));
console.log(jsFiles);
});
Hello, oh my god i don´t have thought about it.Thanks so much;
Hello, if a client drop a js file this stop my server in nodejs, how i can filter this? Using this library?