js validation for image ??
Posted: Thu Mar 01, 2007 4:17 am
i am trying to make the javascript validation for images..
For example i tried to upload the file "c:\folder\file.exe"
It should check the extension , if the extension is not image type
should give alert..
what i want?
1> i want to know if there is any function in javascript
that reads the extension of full path like "c:\folder\file.exe"
2> file size
Thanks in advance to all of you !!
For example i tried to upload the file "c:\folder\file.exe"
It should check the extension , if the extension is not image type
should give alert..
what i want?
1> i want to know if there is any function in javascript
that reads the extension of full path like "c:\folder\file.exe"
2> file size
Thanks in advance to all of you !!