Skip to content

Commit

Permalink
fix : logging
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Dec 28, 2023
1 parent f762184 commit 3bb76a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public String save(MultipartFile file) {
Path path = fileProperties.getPath().resolve(
Paths.get(fileName)
.normalize());
System.out.println(path);
Files.copy(file.getInputStream(), path, StandardCopyOption.REPLACE_EXISTING);
System.out.println("ok");
return String.format("%s/%s", fileProperties.getPath(), fileName);
} catch (IOException e) {
throw FileException.EXCEPTION;
Expand Down

0 comments on commit 3bb76a5

Please sign in to comment.