Jump to content

Archived

This topic is now archived and is closed to further replies.

herando

Initial value of file form field

Recommended Posts

How to set initial value of file form field. If I set <input type="file" name="file" value="something" /> , the value doesn't appear on screen.

Share this post


Link to post
Share on other sites
You cannot set the value of the file input field, security risk. If possible, spammers will be able to steel your files just by visiting the site.

Share this post


Link to post
Share on other sites
Yeah, there is no field type of “file” that I know of. Umm, what exactly are you trying to do? Maybe there’s and alternative...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.