Fill In A File Upload Input With File From Javascript
so I am recording audio on my webpage using recorder.js which records audio from a mic then creates a wav file in javascript. I have this code to create a blob and download the fi
Solution 1:
No, there is no possibility to initialize <input type="file">
. This is not implemented in any known browser as it can cause security issues.
Imagine an evil developer who makes something like this:
<inputtype="file" value="/etc/passwd" style="display: none;">
When the clueless user submits the form, the file is going to be uploaded and revealed to the attacker.
Post a Comment for "Fill In A File Upload Input With File From Javascript"