Copie o código do código da seguinte forma:
imgpath = getRealPath (fileId);
Document.getElementById ("Divsbtp").
Função getRealPath (fileId) {
var file_upl = document.getElementById (fileId);
file_upl.Select ();
Retornar document.Selection.Creterant ().
}
NOTA: O IE8 Local Picture Upload Preview não pode ser usado diretamente com $ ("#img"). Usados existem ícones quebrados.