Skip to content

Using Spring Boot RestTemplate to post form multipart/form-data with JSON field

Notifications You must be signed in to change notification settings

datnguyen293/post-multipart-form-data-with-json-resttemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

post-multipart-form-data-with-json-resttemplate

Using Spring Boot RestTemplate to post a form with file and json data to an endpoint.

Normally if you only set the Content-Type of the post request to MULTIPART_FORM_DATA is not enough. Instead you have to set the HttpHeaders content type of each element in the post data.

About

Using Spring Boot RestTemplate to post form multipart/form-data with JSON field

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages