how to set input type file field value
-
how to set input type file field value Hi all.. i am not able to set the default value for by giving the value. is there any way to achieve the purpose? function callme() { document.form1.t.value="textdsfdsfdsfdsf"; document.form1.file.value="c:\php.exe"; }
Harinath Cybernet software systems pvt. ltd. 3, Bishop wallers avenue east, mylapore chennai India-600004
-
how to set input type file field value Hi all.. i am not able to set the default value for by giving the value. is there any way to achieve the purpose? function callme() { document.form1.t.value="textdsfdsfdsfdsf"; document.form1.file.value="c:\php.exe"; }
Harinath Cybernet software systems pvt. ltd. 3, Bishop wallers avenue east, mylapore chennai India-600004
You can't do this. This is designed as such for security reasons. If you could dynamically set the value of the file input object, anyone would be able to steal files from your hard disk. theJazzyBrain
Excellence is not an act, but a habit!
Aristotle