View Full Version : Inserting a value into a "FILE" box
QuackHead
07-15-2002, 08:40 PM
I'm trying to insert a value submitted from a form into a file box...
(<input type="file" name="FILE1">) but using the value field (value="c:\file.txt") doesn't work.
Is there a way to specify this value? Can I use javascript to do this?
thanks alot,
~Quack
scroots
07-15-2002, 09:09 PM
could you define what you mean by a file box? is it a textbox like the post subject one on the reply page?
scroots
joh6nn
07-15-2002, 09:15 PM
nothing can do that, as far as i know. you're not allowed to set the value of a file box, in anyway, because that would let malicious coders force the upload of arbitrary files from users computers. for example, i could make a form uploading a users password files, or address books, etc. for that reason, file boxes are read only.
scroots
07-15-2002, 09:19 PM
i suppose it would be impossible as it could have some very malicious uses. I have know learnt what a file box is.
scroots
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.