Page is a not externally linkable
- Browsers
-- Opera Browser Usage and Support
---- Setting default value for file upload form


adb64 - 9:02 pm on Dec 19, 2005 (gmt 0)


I want to fill in a default filename for a file upload form.

<input type="file" size="35" name="imgupload" value="a:\\image.jpg">

But it seems this is only supported by Opera and Opera ask for a confirmation. It doesn't work in IE or FF.

Is there anyway to go around this, e.g. using javascript? It is ok when the user has to click the filename before it is being filled-in in the input box.
So maybe I had to post this in the Javascript forum, but I'm hoping there is way to do it without using Javascript.

I want to use this for a form in which the user can type in or upload some HTML text and via a PHP script I want to scan the text for IMG tags so the user can easily upload the images after the HTML text has been uploaded.

Thanks,

Arjan


Thread source:: http://www.webmasterworld.com/opera_browser/398.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com