Well, the files attribute of an input[type=file] is read-only. Therefore I can not write my blob data into this input element.
But if I create a new input file element using Javscript, then possible to insert blob data on creation? I am only interested in solutions working in chrome (extension) - other browsers do not matter.
<input type=file>is when you want to change a file prior uploading. If you're looking for a method to accomplish that, use theFormDatafunction from the XMLHttpRequest level 2 specification. Code examples can be found at stackoverflow.com/a/11628694 (possibly duplicate question?) and stackoverflow.com/a/11382138getUserMedia). That's my use case - filling out a file input box from a microphone when the browser doesn't support that by default (which few browsers do).