Can I somehow choose and upload a local image file from the file dialog via Javascript (I'm trying to use UserScript to do it)?
I can open the file dialog via the following code:
function performClick(node) {
var evt = document.createEvent("MouseEvents")
evt.initEvent("click", true, false)
node.dispatchEvent(evt)
}
performClick(document.getElementById('fld_images'))
But what about uploading? Is it possible? Maybe HTML5?
Thanks in advance.