file upload is not woking

18 views
Skip to first unread message

Awadhesh

unread,
Jul 19, 2017, 7:20:49 AM7/19/17
to Swagger
Hi All,

My service request mapping is :
@RequestMapping(value = "", headers = ("content-type=multipart/*"), method = RequestMethod.POST)

I am trying to use this api through Swagger UI for which I have to upload a file. I used below :
@ApiImplicitParam(dataType="file",  paramType="form",  value="PMML file need to be uploaded.", required=true)

I am getting the option to upload a file. I selected file from my local and uploading but it's not hitting my web service. 

Please help me to solve this problem. What am I doing wrong here?
Reply all
Reply to author
Forward
0 new messages