"Bhavin" <an*******@discussions.microsoft.com> wrote:
Hi
I'm trying to input image file using this synax.
<input type=file name="tx_file" accept="image/*"
class=boxText>
But when open file dialouge appears, it shows all the
file and user can select any file and i.e. i dont want.
Can any one suggest me?
The "name" attribute of the <input type="file"...> is read-only. If
you could assign a value to it, then you could upload *any* file from
*any* client's computer without the user being aware of what was going
on.
You can check the value the user has given the attribute when the form
is submitted (or each time the value is changed, though that kind of
thing can get messy).
--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov