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

Feature Request: Automatically figure out content type of files being uploaded #10

Open
tcoulter opened this issue Feb 6, 2014 · 0 comments

Comments

@tcoulter
Copy link
Contributor

tcoulter commented Feb 6, 2014

Feature Request: The Ruby library should automatically figure out the content type of files being uploaded, where possible.

Problem: When calling create_file, you must specify a content_type option as part of the last parameter (a hash). This is annoying as for many cases it can be done automatically.

Proposed Solution: When no content_type option is passed, we run the file through this gem and see if we get a match: https://github.com/halostatue/mime-types

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

No branches or pull requests

1 participant