Finally found where the darn thing decides the file type