...

View Full Version : How to hide the File Input???



NinjaTurtle
12-22-2004, 07:00 AM
Dear,

How to hide the File Input(< Input type=File >)?

my problem is when user choose a file to upload, then next they will go to a screen to confirm the file path b4 upload the particular file,but that page is plain text, so i try to put the value into the File input type(just like textbox in hidden), then only i can upload it(using ASP).

And there is another problem, i cant hard code a value in the <Input type=File> as <Input type=File value="C:\...">

Jeff Mott
12-22-2004, 07:44 AM
You'd have to run the confirmation with JavaScript without submitting the form. Any decent browser will not let you hard code, or even modify the value of a file input field. Otherwise a malicious developer could set it to some known password file, for example, and automatically submit the form.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum