aggiunto salvataggio immagini in direcotry temporanea tomcat
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -61,7 +61,6 @@ public class ActivityService {
|
||||
|
||||
|
||||
public StbActivity uploadAttachment(String activityId, MultipartFile... files) throws Exception {
|
||||
logger.info("Uploading attachment activity ID: " + activityId);
|
||||
List<StbActivityFile> stbActivityFiles = new ArrayList<>();
|
||||
|
||||
for (MultipartFile file : files) {
|
||||
|
||||
@@ -915,7 +915,7 @@ public class SteUPService {
|
||||
|
||||
public void uploadAttachment(MultipartFile f, String activityId, String md5User) throws Exception {
|
||||
this.authMd5User(md5User);
|
||||
|
||||
logger.info("Uploading attachment activity ID: " + activityId);
|
||||
String fileName = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + ".zip";
|
||||
String pathFile = UtilityDirs.getEmsApiTempDirectoryPath() + File.separator + activityId + File.separator;
|
||||
UtilityFile.createZipFromMultipartFile(pathFile, fileName, f);
|
||||
|
||||
Reference in New Issue
Block a user