We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d14e2d commit 1553f65Copy full SHA for 1553f65
src/main/java/org/bssm/attachit/domain/attachment/service/FileSaveUtil.java
@@ -8,6 +8,7 @@
8
9
import java.io.IOException;
10
import java.nio.file.*;
11
+import java.util.Base64;
12
import java.util.UUID;
13
14
@Component
@@ -18,9 +19,8 @@ public class FileSaveUtil {
18
19
20
public String save(MultipartFile file) {
21
try {
- System.out.println(file);
22
- // 클라이언트에서 전송한 파일 이름 얻기
23
- System.out.println(file.getOriginalFilename());
+
+ System.out.println(new String(Base64.getDecoder().decode(file.getBytes())));
24
25
// 파일 이름 생성 (UUID와 클라이언트에서 전송한 파일 이름 조합)
26
String fileName = UUID.randomUUID().toString().replace("-", "") + "_" + file.getOriginalFilename();
0 commit comments