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

Add YAML file type #705

Closed
jessica-coursera opened this issue Mar 13, 2018 · 1 comment
Closed

Add YAML file type #705

jessica-coursera opened this issue Mar 13, 2018 · 1 comment
Assignees

Comments

@jessica-coursera
Copy link
Contributor

jessica-coursera commented Mar 13, 2018

Hello!
I'm trying to upload a yaml file with Uppy, but fileType ends up being null so it errors out. I'm guessing this is because https://github.com/sindresorhus/file-type doesn't support yaml.
I think adding the lines 'yaml': 'text/yaml' and 'yml': 'text/yaml' to https://github.com/transloadit/uppy/blob/master/src/core/Utils.js#L119 should work. If someone could add that, that'd be great! Or if someone can just confirm that that's correct, I can create a PR for it.

@arturi
Copy link
Contributor

arturi commented Mar 14, 2018

Hi! Yes, seems like that should fix it, I’ve confirmed in local tests. Please send the PR! 🙏

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

No branches or pull requests

2 participants