|
@@ -56,7 +56,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(photo, filePath);
|
|
UploadUtil.upload(photo, filePath);
|
|
} catch (IOException ioe) {
|
|
} catch (IOException ioe) {
|