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

sendToChat allow to specify mime type #86

Open
singpolyma opened this issue Aug 14, 2024 · 1 comment
Open

sendToChat allow to specify mime type #86

singpolyma opened this issue Aug 14, 2024 · 1 comment

Comments

@singpolyma
Copy link

It would be nice if https://webxdc.org/docs/spec/sendToChat.html could accept a mime type. Right now we must infer type only from filename extension if present.

@r10s
Copy link
Contributor

r10s commented Aug 14, 2024

well, in my experience, mime types do add confusion only, not clarity :) the file extension is usually unique enough, i do know of very few examples where this is not the case, and none of them come into mind when working with webxdc. but maybe i have overseen a larger real-world usecase :)

anyways, iirc, you already now can set a mime type when using a File or a Blob object, maybe this is good enough and we need only explicit documentation upon that

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

2 participants