Here Mudassar Ahmed Khan has explained how to validate File extension before Upload using Regular Expression in JavaScript and jQuery.
The selected File’s extension will be validated using a Regular Expression and an error message will be displayed when an invalid file is selected.
↧