as I checked it is because you are using
directory=""
webkitdirectory=""
mozdirectory=""
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory The HTMLInputElement.webkitdirectory is a property that reflects the webkitdirectory HTML attribute and indicates that the element should let the user select directories instead of files.