HTML:
Rule: The file to
You simply need to pull the value of the element:
var fileName = $('#group_document_file').val();
var extension = fileName.slice('.')[fileName.slice('.').length - 1].toLowerCase();
if(extension == 'jpeg' || extension == 'gif' || extension == 'png')
// Show Validated Image
else
alert('Choose a supported image format');