This is not possible as of 2024, I'm pretty sure that the file upload dialog is managed by the system and not the browser itself. You could create a custom file upload dialog with HTML elements, but that's about it.