Skip to content

Commit 77b56c5

Browse files
committed
refactor(FileUploadController): S3KeyType 상수 변경 및 코드 정리
1 parent 3a72c9a commit 77b56c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/inha/gdgoc/domain/resource/controller/FileUploadController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package inha.gdgoc.domain.resource.controller;
22

3+
import inha.gdgoc.domain.resource.enums.S3KeyType;
34
import inha.gdgoc.domain.resource.service.S3Service;
45
import inha.gdgoc.global.dto.response.ApiResponse;
56
import lombok.RequiredArgsConstructor;
@@ -23,7 +24,7 @@ private record UploadResponse(String url) {}
2324
public ResponseEntity<ApiResponse<UploadResponse, Void>> upload(
2425
@RequestParam("file") MultipartFile file
2526
) throws Exception {
26-
String key = s3Service.upload(0L, inha.gdgoc.domain.resource.enums.S3KeyType.ETC, file);
27+
String key = s3Service.upload(0L, S3KeyType.study, file);
2728
String url = s3Service.getS3FileUrl(key);
2829
return ResponseEntity.ok(ApiResponse.ok("OK", new UploadResponse(url)));
2930
}

0 commit comments

Comments
 (0)