https://bugzilla.wikimedia.org/show_bug.cgi?id=53820

--- Comment #5 from Bryan Davis <[email protected]> ---
UploadStash::getFile() returns an UnregisteredLocalFile subclass which in turn
derives mime type via MimeMagic::guessMimeType(). Looking there you can see
that the first guess is made via magic header checks with a fallback to
extension based guessing as Bawolff remembered.

There's a loophole in that fallback though that my money is on for this bug.
MimeMagic::doGuessMimeType() will return 'unknown/unknown' if the file can't be
opened for reading. Based on some of the other bugs I've been chasing this
week, my guess is that the stashed file is actually missing from disk.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to