Remove file extension error when adding an xml file after trying to upload a non-xml file