HTML form and file element

Is it possible to insert a value into the input element of an html form if the element is of type "file"? How to do it, if possible?

+3
source share
1 answer

No, I'm sorry, JavaScript is very careful about what it allows the developer to do with this input element, think about how it can be used with some kind of complex CSS. Some computers may be forced to refuse sensitive or private data if the user does not know that they are actually uploading the file to the server.

Here is something from RFC 1867 :

, , . , HTML , <INPUT TYPE=file VALUE="yyyy">.

+5

Source: https://habr.com/ru/post/1736861/


All Articles