I am facing the same issue in html code when used in visualforce page but when used as standalone html page its working fineI am using browsers Google Chrome as well as Mozilla,Thanks in advance.My code:
Display
input[type="file"] {
display: none;
";
txt += "size: " + file.size + " bytes
";
Code: Select all
document.getElementById("demo").innerHTML = txt;
}
else
if (x.value == "")
{
txt += "Select one or more files.";
document.getElementById("demo").innerHTML = txt;
}
else
{
txt += "The files property is not supported by your browser!";
txt += "
The path of the selected file: " + x.value; // If the browser does not support the files property, it will return the path of the selected file instead.
Code: Select all
document.getElementById("demo").innerHTML = txt;}}}
}
}}
Validate