feli7
asked on
input type=file?
how can i set the default value on the input type=file?
eg:
<input type=file name=attachment value="123">
thankz
eg:
<input type=file name=attachment value="123">
thankz
You can't. It would be a huge security hole if you could.
you cannot...it's a read only property...and for good reason...when you are able to set the default file you can download any file you want from someones harddisk and that would be an enormous security hazard...
Max.
Max.
ASKER
so there's no way u could set a value on the input type=file?
any other way u could do the same functionality as the input type=file which open up the window explorer 4u to browser and oso can set the value in the input where u do a edit to it?
any other way u could do the same functionality as the input type=file which open up the window explorer 4u to browser and oso can set the value in the input where u do a edit to it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.