This is what I have:
var x = document.createElement(“INPUT”);
x.setAttribute(“type”, “file”);
x.setAttribute(“id”,“myFile”);
document.body.appendChild(x);
var y = document.createElement(“BUTTON”);
var ty = document.createTextNode(“Click me”);
y.appendChild(ty);
y.setAttribute(“id”,“btn”);
document.body.appendChild(y);
document.getElementById(“btn”).onclick = function() {myFunction()};
function myFunction() {
bubble_fn_fileupload(document.getElementById(“myFile”).value);
}
The value is C::fakepath/blah blah blah . How can I change that to a url, especially since I have the Javascript to bubble set to file?