I'm trying to upload a file with
AngularJS and Spring controller. The Angular controller looks like this:
I also try this:
and the Spring controller looks like this:
My html Page looks like this:
I have 2 jars in web-inf/lib:commons-upload.jar and commons-io.jar I add this in my spring configuration file:
When I'm trying to upload a file, I get the error:
When I'm trying to upload a file using MultipartHttpServletRequest in my spring function instead of Multipart i get this error:
When i use HttpServletRequest request and i try to cast it i got a ClassCastException. Nothing change when i cancel enctype="multipart/form-data" from my form Tag.
My error is a server side error.
Any help will be much appreciated