ModelAndView mav = null;
UploadResult uploadResult = new UploadResult();
uploadResult.setResult(1);
FormRequest formrequest = new FormRequest(request);
request.setAttribute("form_upload", formrequest);
if(formrequest.getItem("customerId")!=null){
int customerId = WebUtil.parameter2int(formrequest.getItem("customerId").getValue());
Customer customer = customerService.getById(customerId);
if(customer!=null){
FormRequestItem imgFile = formrequest.getItem("img")!=null?formrequest.getItem("img"):null;
String newFilename = "";
try{
newFilename = FileResources.saveFile(formrequest, imgFile, fileUploadImgPath+customer.getId()+"/");
}
catch(Exception e){