File Upload question

P

Pamela Chatterjee

In my project I am uploading file, using HttpPostedFile in ASP.NET. In
my project I have to allow user to upload pdf, gif and jepg file only.
I know after uploading file I can check ContentType of file and give
user a massage. But I like to filter files when in File Browser. So
when user will click the Browse.. button only list of pdf, gif and
jepg files
will be showing up in the file browser. But I don't know how to do
that . Can anybody please help me?

Thanks.

Pamela.
 
R

Ray at

This is a browser issue, not an asp issue, or asp.net. (This group is for
asp.) If I remember right, older browser did allow you to specify filetypes
in the properties of the input, but I think that ability has been removed in
newer browsers. You can use client-side script to retreive the value of the
file input and check the ~extension~. Try posting in a client side group
like microsoft.public.scripting.jscript.

Ray at home
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top