Spring Boot multipartfile always null

前端 未结 5 1774
悲&欢浪女
悲&欢浪女 2021-02-04 10:02

I am using Spring Boot version = \'1.4.0.RC1\' with Spring Boot Stormpath 1.0.2.

I am trying to use multipart file upload but the MultipartFile is always null in the con

5条回答
  •  鱼传尺愫
    2021-02-04 10:21

    Please refer to my answer in this URL: Spring Boot multipart upload getting null file object

    Basically you have to avoid the default Spring configuration for multipart and avoid to set Content-type or boundary in your request header.

提交回复
热议问题