I have written a chrome extension in which I have a need to upload files. When somebody clicks on the upload button (which I made through <input type="file" />
), it opens the select file dialog box as expected. Everything is good in Windows but when a user from macOS (with workspaces/multiple screen setup) opens it, it opens on a different screen.
My wild guess is that it happens because the extension loads on the top right corner of the browser and the select file dialog box which opens is going outside the current screen boundary, hence being shifted to another display/workspace.
Is there any way to control the select file dialog box and show it in the center of the screen?
Thank you :)