There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?