You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't figure out how to upload an image file to the server using the HTTP method with Tyrian. I couldn't find any code examples. Help me please to understand how to do this correctly.
Questions:
How can I correctly upload an image file to the server using the Tyrian?
Are there any limitations or peculiarities with Tyrian when transmitting files? (Currently, I'm concerned because I only saw the possibility of transmitting the following types of request body in the source code: html, json, xml, plainText)
If the functionality is not supported, are there plans to add support for file transmission in future versions of Tyrian?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi @a-khakimov, sorry for the slow reply and thank you for the pull request, I shall take a look!
The short answer is that I don't know off the top of my head. It is quite probably an oversight and that you are the first person to try this with Tyrian's HTTP client. If that's the case we should of course fix it, thank you for reporting. 🙏
I feel like @hobnob must have done stuff like this with Tyrian though? Maybe we can summon him by invoking his name... 😄
I don't feel great about having to recommend this, just because we should support images out of the box, but as a work-around you can also use http4s-dom (or any other Cats Effect / ZIO compatible client), which is a more fully featured HTTP Client. There is an example here: https://github.com/PurpleKingdomGames/tyrian/tree/main/examples/http4s-dom
I couldn't figure out how to upload an image file to the server using the HTTP method with Tyrian. I couldn't find any code examples. Help me please to understand how to do this correctly.
Questions:
Thank you for your help!
The text was updated successfully, but these errors were encountered: