Instead of using the input type="file" html tag, is it possible to open the choose a file to upload dialog box by pressing input type="button" ? Then, when a file is selected from the choose a file to upload dialog box, the file path is inserted into the regular html input type="text" tag?
It seems that gmail does something similar, but not with buttons and text inputs, they just have an add file link or something like that. When this link is clicked, the select file(s) to upload by mail.google.com dialog box select file(s) to upload by mail.google.com . When you click on a file, the file name is displayed on the screen.
How do they do it?
source share