Copiar código del código de la siguiente manera:
imgpath = getRealPath (fileId);
document.getElementById ("divsbtp").
Función getRealPath (fileId) {
var file_uppl = document.getElementById (fileId);
file_uppl.select ();
Return document.selection.createrant ().
}
Nota: La vista previa de carga local IE8 no se puede usar directamente con $ ("#IMG"). Usados hay íconos rotos.