Click to See Complete Forum and Search --> : type="file" value change problem


jnixon
11-19-2003, 12:32 PM
Is it posable to change the value of input type=file?

In Netscape I get a Security error, in IE nothing happens.

jnixon

fredmv
11-19-2003, 12:37 PM
You cannot. There is absolutely no way and for a very good reason: it's a huge security risk. Imagine if you could change the value of a file upload form control, you could change it to a password file (or other file that would exploit the user's privacy), for example, and then upload it to the server using the form object's submit method. For this very good reason, again, there is absolutely no way to change it's value.

jnixon
11-19-2003, 12:40 PM
Okay, thank you.