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

Does AttachmentType::Bytes send correct Content-Type? #2439

Open
kangalio opened this issue May 19, 2023 · 0 comments
Open

Does AttachmentType::Bytes send correct Content-Type? #2439

kangalio opened this issue May 19, 2023 · 0 comments

Comments

@kangalio
Copy link
Collaborator

@Joshument:

Does anyone know how to get a file to embed?
It seems like any mention of images requires uploading it somewhere first but if I can't use the discord CDN then I'd have to run my own https server along with the bot
[...]
Figured it out
had to save it as a file and then use AttachmentType::Path

@kangalio

then it embedded as a file, but not before?? that's weird
which AttachmentType variant did you use before?

@Joshument

Bytes
I tried loading from memory cause I had it in memory

@kangalio

okay and with Bytes, the file didn't embed, but with Path, it does?
screams like wrong Content-Type on serenity's side

@Joshument

I'll have to double check again
But I think so

https://discord.com/channels/381880193251409931/919310428344029265/1109085020414541846

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