'Filling in input type=file
I know that prefilling of <input type = file />
tags in HTML is not allowed due to security reasons. But is there any automated
way through scripts
of any sorts to fill the field with a prespecified file (by the user, and not the server
) in an automatic way?
Solution 1:[1]
This is not possible (for good reasons), and is in fact considered a security issue if it were possible to do so. Imagine if a server could automatically select a file on the user's computer to upload. Scary, huh?
You can see that Microsoft addressed this in a bug report.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | zongweil |