SplFileInfo

See all posts Reply

SplFileInfo  new!
by Antonis, 12 years, 10 months ago
I see that mime check is initially handled with fileinfo, which is available for 5.3+ - would it be possible to check with splfileinfo that is available since 5.1.2 so that wider compatibility is achieved (I have not tested this class - I do not know even if it is similar to fileinfo...)?

The default fall back with getimagesize offers great security for images though.Reply
Re: SplFileInfo  new!
by colin, 12 years, 10 months ago
I am afraid SplFileInfo doesn't do MIME types. We have to use FileInfo or fall back on older/alternative methods to find out the MIME type.Reply