Added .g to the allowed extensions for file uploads