ZF-8564: Zend_Service_Amazon_S3::getMimeType() should use strtolower on extension to detect path like moo.JPG

Issue Type: Improvement Created: 2009-12-17T03:30:04.000+0000 Last Updated: 2009-12-20T19:46:34.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Julian Davchev (jmut) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Service_Amazon

Related issues: Attachments:


Zend_Service_Amazon_S3::getMimeType() is best effort function anyhow. It's not something reliable so it can at least try to be more forgiving to input.

I belive it should do $ext = strtolower($ext)

Doing that it will successfully consider moo.JPG of type image/jpeg and not binary/octet-stream as is now. Cheers


Posted by Julian Davchev (jmut) on 2009-12-17T03:30:59.000+0000

Updating component to Zend_Service_Amazon

Posted by Satoru Yoshida (satoruyoshida) on 2009-12-20T19:46:31.000+0000

Solved in SVN trunk r19824

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.