-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
I cannot set a content-type of a form-data field #2064
Comments
Only |
I am trying to pass json object and I need to give it a content-type as you can see in the example but its not possible. |
Won't |
It won't. |
Why? |
Package
dio
Version
5.4.0
Operating-System
Android
Output of
flutter doctor -v
No response
Dart Version
No response
Steps to Reproduce
Expected Result
)
));
Actual Result
Could not resolve parameter [0] in public org.springframework.http.ResponseEntity<?> com.bp.api.controllers.PdfController.generatePdf(com.bp.api.models.dtos.Pdf,org.springframework.web.multipart.MultipartFile,org.springframework.web.multipart.MultipartFile,org.springframework.web.multipart.MultipartFile,org.springframework.web.multipart.MultipartFile,org.springframework.web.multipart.MultipartFile,java.util.List<org.springframework.web.multipart.MultipartFile>): Content-Type 'application/octet-stream' is not supported
api-bp | 2023-12-11T14:58:50.733Z WARN 55 --- [nio-8080-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'application/octet-stream' is not supported]
api-bp | 2023-12-11T14:58:50.734Z DEBUG 55 --- [nio-8080-exec-5] o.s.web.servlet.DispatcherServlet : Completed 415 UNSUPPORTED_MEDIA_TYPE
The text was updated successfully, but these errors were encountered: