Replies: 1 comment
-
Hi, I found a solution. I had to add double quotes to the file and fileName
Found an example here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
``Hi,
I'm trying to send a zip file from a C# application using HttpClient and multipart/form-data. I already have the zip file, I've tried many ways and have can't make it work.
I've successfuly send the file from Postman and also from a Go application. So the endpoint on Elysia works as expected.
The issue I have is that the file property in the body is undefined when call from C#, on trying multiple combinations I can see that sometime the file make it but Elysia does not parse it correcly and does not detected as a file.
This is my C# code
When I just do
I see content in the body.file property but Elysia does not recongnize it as a valid file.
I've also tried ReadAllBytes instead of FileStream and nothing.
I also tried this
and does not work either.
Thanks for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions