bug fix regarding template import
This commit is contained in:
parent
b825a80e61
commit
ae2168b2d7
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue