I was getting this error:
HTTP Status 500 - java.lang.IllegalStateException: The @FormParam is
utilized when the content type of the request entity is not
application/x-www-form-urlencoded
My method was:
@POST
@Path("/upload")
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Response uploadFile(
Very helpful! Thanks!
On Thursday, 21 July 2016 14:41:41 UTC-4, Joel wrote:
>
> I'm getting the error when trying to post an uploaded file:
> The @FormParam is utilized when the content type of the request entity is
> not application/x-www-form-urlencoded
>
> I thought this might be needed, so I