The Accept property of an HtmlInputFile object is a comma-delimited list of
MIME types. "gif" and "bmp" are not MIME types; they are file extensions.
Here's what you need to put:
tbFileUpload.Accept = "image/gif,image/bmp";
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Jon Natwick" <no**********@yahoo.com> wrote in message
news:z3*******************@tornado.rdc-kc.rr.com...
I would like to limit the file types that users can upload.
<input id="tbFileUpload" type="file" runat="server">
This setting looks like it should it work, but it's not working for me.
tbFileUpload.Accept = "gif,bmp";
Any suggestions?