Tag: file validation

Thinking of allowing only specific file types to be browsed through File Input HTML field?? Here’ a simple regex based javascript that can help you out with the solution. It’s based on the file extension of file being browsed and clears the input field if validation fails. The allowed list of file extensions is exhaustive …