MIME Magic gives wrong extension
Richard Wallace <[email protected]>
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
Hello, In Ansel_Gallery::getVFSName() the call to MIME_Magic::MIMEToExt()$type) returns jpe for JPEG images. I found that if I simply change the ordering in Horde/MIME/mime.mapping.php for image/jpeg types to put 'jpg' => 'image/jpeg' above other types of jpeg images that it works fine. Is there a better way to do this? I had hoped that maybe if I installed the fileinfo PHP and PECL extensions. Unfortunately, my efforts to do this on FreeBSD have fallen short for now. If anyone has suggestions on the best way to go about doing this I would greatly appreciate it. Or if you have an idea on how better to solve the problem of the wrong extension type that would be great too. Thanks, Rich ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]