File type input -> select type

hello ,

When i upload image on imageshack it let me select only image type file to upload
but on my website when i upload image it let me select all type of files
how can i do just like imagehack ?
thanks.

If you’re using the standard HTML form element (input type=“file”) you don’t have the same options. The imageshack uploader is a quite heavily scripted to perform validation and so on.

Imageshack use a flash uploader which gives them the ability to check the file type using JavaScript, there are quite a few different JavaScript powered file uploaders but it would be up to you which one you want to use.

i don’t know what you mean , can you give me example or some keyword to search for?