Calling following code in Firebug console in firefox throws 1000 “NS_ERROR_DOM_SECURITY_ERR” exception, dont know why and how. tried putting code in the file in the server to avoid different
domain issue, But that also did not work .
$("input[type='file']").val('c:\temp\pngs\UA_text_logo.png');
For security reasons browsers forbid you from setting the value of an
input[type='file']field. So it’s normal that you get this error. You are attempting an unauthorized operation. You can read the filename that has been selected by the user but you cannot set its value.