Skip to content

Commit

Permalink
Merge pull request #92 from SanE-Seo/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Changha-dev authored May 5, 2024
2 parents 62a9f6c + dd73eb2 commit a739393
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ public class ImageController {
private ImageService imageService;

@PostMapping
public ResponseEntity<?> uploadImage(@RequestParam("file") MultipartFile file, @RequestParam("postId") Long postId) {
imageService.uploadImageToS3(postId, file);
public ResponseEntity<?> uploadImage(@RequestParam("file") List<MultipartFile> files, @RequestParam("postId") Long postId) {
for (MultipartFile file : files) {
imageService.uploadImageToS3(postId, file);
}
return ApiResponse.ok("이미지 업로드 성공");
}

Expand Down

0 comments on commit a739393

Please sign in to comment.