list(model, startFile, pageSize);
return "files";
}
try {
FileInfo dest = fileService.createFile(path + "/" + originalFilename);
file.transferTo(fileService.getResource(dest.getPath()).getFile());
fileService.publish(dest);
model.put("uploaded", dest.getPath());
}
catch (IOException e) {
errors.reject("file.upload.failed", new Object[] { originalFilename }, "File upload failed for "
+ HtmlUtils.htmlEscape(originalFilename));
}