Issue #1332960 by pillarsdotnet: The mimedetect_mime() function assumes a $file->filepath property, but it does not exist.