Re: Exception: The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded

2017-02-13 Thread Casper Aleks
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(

Re: Exception: The @FormParam is utilized when the content type of the request entity is not application/x-www-form-urlencoded

2016-10-13 Thread Mohammed Chowdhry
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