When we use input tag with type="file", the default file picker in HTML will pop up on the top left position. How can I adjust it to any location such as at the center of browser for the default case?
Asked
Active
Viewed 72 times
0
-
Is that a correct duplicate? Since we want to center the file selector popup, not the file selector input button. – Shilly Jul 08 '22 at 13:43
-
The file selection dialog position cannot be controlled through code. – CuriousMind Jul 08 '22 at 13:43
-
Correct the duplicate question is different. – Riya Bansal Jul 08 '22 at 13:52
1 Answers
2
The file picker dialog box is a native UI completely outside the control of the page author.
It may or may not appear in the top left depending on the browser / operating system / other factors.
You can't change that from your code.

Quentin
- 914,110
- 126
- 1,211
- 1,335