Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] file upload dynamicaly


  • From: javascript@xxxxxxxxxx (Peter-Paul Koch)
  • Subject: [Javascript] file upload dynamicaly
  • Date: Tue, 19 Feb 2002 17:18:00 +0000

>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.