@RequestMapping(value = "/save", method = RequestMethod.POST)
    public String save(@ModelAttribute("uploadForm") FileUploadForm uploadForm, Model map) {

        if(!uploadForm.CheckFiles()) {
            map.addAttribute("resultMessage", uploadForm.getErrorMsg());
            return "file_upload";
        }

        if(!uploadForm.saveFilesToDisk(System.getProperty("user.dir") + "\\webapp\\HungerGamesWebService\\HungerGamesBots")) {
            map.addAttribute("resultMessage", uploadForm.getErrorMsg());
            return "file_upload";
        }

        List<MultipartFile> files = uploadForm.getFiles();

        List<String> fileNames = new ArrayList<String>();

        if(null != files && files.size() > 0) {
            for (MultipartFile multipartFile : files) {

                String fileName = multipartFile.getOriginalFilename();
                fileNames.add(fileName);
            }
        }

        map.addAttribute("resultMessage", "File was successfuly uploaded" + uploadForm.getErrorMsg());
        map.addAttribute("files", fileNames);

        return "file_upload";

    }