I am developing an application using Spring MVC, and Extjs and I have a problem, I need to pass a file path to my controller, which going to delete the image with the path. However in my view the path is correct, but when the request arrive in controller the path is without extension.
View : notepad-icon.png
Controller: notepad-icon
@RequestMapping (value = "/delete/{file}", method = RequestMethod.DELETE)
public ModelAndView delete(@PathVariable String file){
ModelAndView view = new ModelAndView(VIEW);
service.delete(file);
view.addObject("success", Boolean.TRUE);
return view;
}
Can anyone provide me a insight, please ??