- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
for (FileItem item : items) {
try {
item.write(new File(repo
+ System.currentTimeMillis()
+ "_" + item.getName()));
} catch (Exception ex) {
log.error(ex, ex);
}
mav.addObject("result", "http://xxx.xx/uploads/"
+ System.currentTimeMillis()
+ "_" + item.getName());
}
Комментарии (8) RSS
Добавить комментарий