#javascript,#fileupload,#programmersbhava
In this video I have applied different types of client side validation using javascript on an Image file.
Validation You Will Learn:
1) To check Empty File.
2) To check File is an Image or not by checking its extension.
3) To check image is not more than 2 MB in size.
In Short you can say, Topics covered are:
1) File Not Empty Validation
2) Extension Validation
3) Image Size Validation
JS in-built Functions Used:
-------------------------------------------------
substring() --- To cut a small string from a given string.
lastIndexOf() --- To get the last index or position of a character or string(integer value is returned).
includes() --- to match a given value from array list (boolean is returned).