Spring MVC with ajax file upload and MultipartFile

后端 未结 5 1123
余生分开走
余生分开走 2021-01-06 13:15

I have an issue using Ajax upload with Spring 3 MVC. I understand that I have to configure multipartResolver bean in spring config, which I\'ve done. Than I can have control

5条回答
  •  一生所求
    2021-01-06 13:23

    As per my observation the file upload plugin does not send a multipart file but sends a stream. I could get it to work by declaring the controller method to accept filename as request param qqfile and the second parameter as httprequest. I then did further processing using request.getinputstream. Hope that helps!

    Regards,

    Pradyumna

提交回复
热议问题