Fix issue with uploads that have no extension