Finally able to achieve the upload feature by using HttpServletRequest
and HttpServletResponse and casting request obj to
MultipartHttpServletRequest which gives the MultipartFile object.