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

Unknown filetypes are not sent #12

Open
simmac opened this issue Apr 5, 2016 · 0 comments
Open

Unknown filetypes are not sent #12

simmac opened this issue Apr 5, 2016 · 0 comments
Labels

Comments

@simmac
Copy link
Owner

simmac commented Apr 5, 2016

Files with a type unknown to File.probeContentType() (or URLConnection.guessContentTypeFromName, so this issue is not dependent on #11) can't be sent in E2E-mode.
The two named methods return null for unknown filetypes, the Gateway SDK seems to ignore files with mimeType=null.

I would recommend checking for null when calling the filetype-function and using either MIME-type application/unknown or application/octet-stream for unknown filetypes (and maybe notifying the sender that this file will be sent as unknown via console output).

@simmac simmac added the bug label Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant