plik JavaScript w Select
<input type="file" id="file" name="file" />
document.getElementById('file').onchange = function() {
// fire the upload here
};
Tung
<input type="file" id="file" name="file" />
document.getElementById('file').onchange = function() {
// fire the upload here
};
document.querySelector('input[name="file"]').addEventListener('change', (e) => {
const file = e.target.files[0];
// todo: use file pointer
});