Page 1 of 1

Question about HTML file upload, input type='file'

Posted: Sun Sep 30, 2007 7:41 pm
by itp
Question about HTML file upload.
I am using HTML form input type file.

With other HTML form structures such as text, I am able to pre-populate
a text box with a value by using value= $myValue.

example: "<input type='test' value=" . $myValue

This does not seem to work with input type='file':
"<input type='file' value=" . $myValue

Anyone have a work around or suggestion?

Posted: Sun Sep 30, 2007 8:04 pm
by VladSun
You can't set its value due to security reasons.

Posted: Mon Oct 01, 2007 6:27 am
by itp
to prevent a rogue site from fishing around in your hard disk?
That makes sense

Posted: Mon Oct 01, 2007 7:17 am
by Sindarin
Is it also true that the "Browse..." button cannot be skinned with css?

Posted: Mon Oct 01, 2007 7:45 am
by VladSun
Sindarin wrote:Is it also true that the "Browse..." button cannot be skinned with css?
This has been discussed recently in this forum ... Search it :)