PDA

View Full Version : Input Type File Question



Anishgiri
Jul 14th, 2010, 11:51 AM
<input type="file" />


When you browse, you will only see "All file" option. Is it possible to make it browse on a specific file such as jpeg?

Kor
Jul 14th, 2010, 04:54 PM
No, as far as I know. But you can validate for JPG files using RegExp:
http://lawrence.ecorp.net/inet/samples/regexp-validate.php#file