Skip to content

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

Open
kensnyder wants to merge 1 commit intotpyo:masterfrom
kensnyder:mime-type-improvements
Open

Set mime based on name when passing a string to putObject#100
kensnyder wants to merge 1 commit intotpyo:masterfrom
kensnyder:mime-type-improvements

Conversation

@kensnyder
Copy link
Copy Markdown

  • 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
Comment thread S3.php
Copy link
Copy Markdown
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