|
@@ -100,7 +100,7 @@ public class PhotoServiceImpl extends BaseService implements PhotoService {
|
|
int month = cal.get(Calendar.MONTH) + 1;
|
|
int month = cal.get(Calendar.MONTH) + 1;
|
|
int year = cal.get(Calendar.YEAR);
|
|
int year = cal.get(Calendar.YEAR);
|
|
String directoryName = year+"-"+month;
|
|
String directoryName = year+"-"+month;
|
|
- String filePath = uploadPath +directoryName + File.separator + fileName;
|
|
|
|
|
|
+ String filePath = uploadPath + File.separator + directoryName + File.separator + fileName;
|
|
|
|
|
|
try {
|
|
try {
|
|
UploadUtil.upload(photoDto.getPhoto(), filePath);
|
|
UploadUtil.upload(photoDto.getPhoto(), filePath);
|