I want to pass the name of a file on the client's machine into an html page. The page will then prepopulate a file input tag and the file will be uploaded. Can this be done? Is there a different method to do this?
Thanks inadv
This conversation is currently closed to new comments.
The W3C HTML 4.01 recommendation says that you can use the value attribute to indicate the intial file, but in practice most browsers do not honor any assignment to the value attribute, nor do they let you assign the value attribute via scripting. This is a good thing, because unscrupulous web masters could use such a feature to put you just one unknowing click away from sending your windows password file or MS Money file, whatever.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
prepopulate HTML file field ?
I want to pass the name of a file on the client's machine into an html page. The page will then prepopulate a file input tag and the file will be uploaded. Can this be done? Is there a different method to do this?
Thanks inadv