-
Notifications
You must be signed in to change notification settings - Fork 73
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
Attachments with extension not in @mime_types fail #31
Comments
I have to add mime type in my case. I had en error with docx documents, I got unknown file. Anybody has fixed this? |
Manually adding this to @mime_types in attachments.ex will get you there.
Ultimately, I'd think that mime_type_for_path(path) and mime_sub_type_for_path(path) should handle path being nil and default to application/octet |
We should do something like mailgun
Where there is not mime type, just application-octet-stream like you said |
This should now be possible without having to hack @MisterToolbox, @Gidrek I know it's been over a year and a half, but if you're still using this it'd be great if you could give this a try and report back if it works for you. |
Attaching a .docx, for instance, generates the following:
The text was updated successfully, but these errors were encountered: