Results 1 to 3 of 3
Thread: js validation for image ??
Mar 1, 2007, 04:10 #1
js validation for image ??
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?
that reads the extension of full path like "c:\folder\file.exe"
2> file size
Thanks in advance to all of you !!
Mar 1, 2007, 05:16 #2
- Join Date
- Mar 2001
- 0 Post(s)
- 0 Thread(s)
var filename = document.getElementById("fileInputID").value; var ext = filename.substring(filename.lastIndexOf('.') );
Mar 2, 2007, 08:26 #3
If Yes i am eagerous to know the solution..
Thank you !!