Fix for when uploaded files don't have filename extensions