views:

80

answers:

2

Hi, I have a question regarding file uploading, I need to limit file types, but I like to do it in the “File Upload” window, so the user can’t even see files that are not allowed for uploading, I like to do it in js or jquery.

I know it’s possible for example, uploadify plugin does this, but I don’t want to use it for a number of reasons.

+1  A: 

Try this link out. It should give you about what you need. It just uses straight javascript, I don't think there are any JQuery options for this yet.

http://www.codestore.net/store.nsf/unid/DOMM-4Q8H9E

Caimen
A: 

As per my knowledge, we can do that as shown below, but still the dialogue contains all file types :

But, you can restrict the file upload of wrong type with Jquery/Javascript, i guess before sending the file to server by checking the extension.

Siva Gopal