Link to home
Start Free TrialLog in
Avatar of feli7
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
Avatar of webwoman
webwoman

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.
Avatar of feli7

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?
ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial