This is a javascript for validating the html input file control. It will validate a valid format, size in KB and dimensions for an array of files selected by the user .