Update X2FormElement.php

Fixed Mimetype and extension validation bug for file uploads