Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set mime based on name when passing a string to putObject #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kensnyder
Copy link

  • New function _getMIMETypeByFilename with an extensive lookup of
    extensions
  • Call that function within _getMIMEType before using the fileinfo
    extension
  • I realize that this codebase may not be maintained any longer but I thought I would share my changes

- New function _getMIMETypeByFilename with an extensive lookup of
extensions
- Call that function within _getMIMEType before using the fileinfo
extension
{
static $exts = array(
// compiled from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types in Oct 2014
'ez' => 'application/andrew-inset',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if these were alphabetically sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants