wkennedy / swagger4spring-web

Swagger support for Spring MVC
89 stars 46 forks source link

"Upload file" button for the MultipartFile parameter #59

Open vikpr opened 10 years ago

vikpr commented 10 years ago

Hi, We're using 0.3.1 version of swagger4spring, and for the request parameters that are of the org.springframework.web.multipart.MultipartFile type it doesn't show the "file upload" button. I've added the following line to the SpringMVCApiReader.scala file in the processDataType method: case "org.springframework.web.multipart.MultipartFile" => "file" and it seems to work, but I'm not sure if this is a correct way to go as basically it was just a quick fix to get it working. This issue also exists in 0.3.2, haven't checked 0.3.3 as we're not using Spring 4 yet.