Jak uzyskać plik wejściowy za pomocą JS

const selectedFile = document.getElementById('input').files[0];
Omach Aaron