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 have been working with Saule library for some months succesfully but now I need to upload a file for processing and then return some data.
At first I did an endpoint and from postman I upload the file and some additional data with Content-Type: multipart/form-data header. The request reaches the endpoint and after a couple of seconds I get the json response.
Now I need the same but I need the json response to follow the json standards with relationships, links and so on.
Here's the code I am using:
`
The problem I am facing is that if I make a post request with Content-Type: multipart/form-data I get an "415 unsupported media type" but if I change the content-type to application/vnd.api+json I can't read the file.
What can I do?
Thank you!
The text was updated successfully, but these errors were encountered:
I mean version 1.7.0.444-beta on nuget. I think #167 was fixed in #168, in the sense that you can now add the JSON API formatter to the end of the collection, so the regular multipart/form-data one gets a chance to run first.
Hello!
I have been working with Saule library for some months succesfully but now I need to upload a file for processing and then return some data.
At first I did an endpoint and from postman I upload the file and some additional data with Content-Type: multipart/form-data header. The request reaches the endpoint and after a couple of seconds I get the json response.
Now I need the same but I need the json response to follow the json standards with relationships, links and so on.
Here's the code I am using:
`
The problem I am facing is that if I make a post request with Content-Type: multipart/form-data I get an "415 unsupported media type" but if I change the content-type to application/vnd.api+json I can't read the file.
What can I do?
Thank you!
The text was updated successfully, but these errors were encountered: