File tree 1 file changed +2
-1
lines changed
src/main/java/com/weve/controller
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
import io .swagger .v3 .oas .annotations .tags .Tag ;
8
8
import lombok .RequiredArgsConstructor ;
9
9
import lombok .extern .slf4j .Slf4j ;
10
+ import org .springframework .http .MediaType ;
10
11
import org .springframework .validation .annotation .Validated ;
11
12
import org .springframework .web .bind .annotation .PostMapping ;
12
13
import org .springframework .web .bind .annotation .RequestMapping ;
@@ -26,7 +27,7 @@ public class GcsController {
26
27
27
28
private final GcsService gcsService ;
28
29
29
- @ PostMapping ("/upload" )
30
+ @ PostMapping (value = "/upload" , consumes = MediaType . MULTIPART_FORM_DATA_VALUE )
30
31
@ Operation (summary = "파일 업로드" , description = "파일을 업로드하여 URL을 생성합니다." )
31
32
public BasicResponse <UploadFileResponse > uploadFile (@ RequestPart (value = "file" ) MultipartFile multipartFile ) throws IOException {
32
33
You can’t perform that action at this time.
0 commit comments