enctype=”multipart/form-data” after using this in form attribute and in that form i have a input type of file and name csvfile and on other hand i will receiving this on sever side with @RequestParam(value=”csvfile”, required=false) MultipartFile csvfile so im not getting the csv file here instead im receiving null so what am i thinking is when enctype=”multipart/form-data” is try encode it, then something is happening there and that i don’t know what i know is when i kept this enctype=”multipart/form-data” to form attribute not only the input type file other input field values also receiving null but when i remove this enctype=”multipart/form-data” from form attribute then im getting all the values but not file type (its retrieving the name of the file in the string formate)
any suggestion from any one
note:i set up everything as mentioned in the spring documentation (like config and web.xml bean..ect) about the MultipartFile its working on spring version 5.0.1 RELEASE with java 8
i have tried everything as mentioned in the latest spring version 6.1.6 documentation and everything set up and im not getting the file in MultipartFile object instead getting null
expecting to get the file
Shaik_ Shafin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.