A similar question can be found here: Support for Multipart and Application Url Encoded coding options in Jersey
I have an API endpoint (in Jersey) that can accept a POST request. Content types are either: form-urlencoded or multipart. Two types of requests arrive on the same path. How to enable this?
For the urlencoded request, I want to get the argument:
@FormParam("recipient") String recipient
For a multidisciplinary request, I want to get:
@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail
Thanks!
source share