Skip to content

Commit

Permalink
remove tmp extension as this copies from /tmp to /app/csv
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewErispe committed Jul 2, 2024
1 parent 7d4ef2a commit e97f811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ private Behavior<Event> postUploadCsvFileHandler(final PostUploadCsvFileRequest
if (request.uploadConfig != null) {
appendUploadConfigToFile(request.uploadConfig, file);
}
Files.move(file.toPath(), Paths.get("/app/csv/" + file.getName().replace(".tmp", "")));
Files.move(file.toPath(), Paths.get("/app/csv/" + file.getName()));
} catch (NoSuchFileException e) {
LOGGER.error("No such file");
} catch (SecurityException | IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public static Route postUploadCsvFile(
try {
return File.createTempFile(
"import-",
"uploadConfig.csv.tmp");
"uploadConfig.csv");
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
return null;
Expand Down

0 comments on commit e97f811

Please sign in to comment.