bug fix regarding template import

This commit is contained in:
Diamantis Tziotzios 2021-05-05 11:20:43 +03:00
parent b825a80e61
commit ae2168b2d7
2 changed files with 4 additions and 4 deletions

View File

@ -135,8 +135,8 @@ public class DataManagementProfileManager {
return null;
}
private static File convert(MultipartFile file) throws IOException {
File convFile = new File(file.getOriginalFilename());
private File convert(MultipartFile file) throws IOException {
File convFile = new File(this.environment.getProperty("temp.temp") + file.getOriginalFilename());
convFile.createNewFile();
FileOutputStream fos = new FileOutputStream(convFile);
fos.write(file.getBytes());

View File

@ -240,8 +240,8 @@ public class DatasetProfileManager {
return null;
}
private static File convert(MultipartFile file) throws IOException {
File convFile = new File(file.getOriginalFilename());
private File convert(MultipartFile file) throws IOException {
File convFile = new File(this.environment.getProperty("temp.temp") + file.getOriginalFilename());
convFile.createNewFile();
FileOutputStream fos = new FileOutputStream(convFile);
fos.write(file.getBytes());