[Javascript] file upload dynamicaly

Peter-Paul Koch gassinaumasis at hotmail.com
Tue Feb 19 11:18:00 CST 2002


>I want to set the value of an input type file by javascript and not by 
>selecting it on the disk.
>So I set the value property.

For security reasons this is not allowed.

document.forms[0].uploadfield.value = '/your/password/file';
document.forms[0].submit();

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




More information about the Javascript mailing list