|
|
|
|
@ -196,6 +196,8 @@ public class MinioAttachmentController {
|
|
|
|
|
public ResponseEntity<Map<String, Object>> updateFile(
|
|
|
|
|
@Parameter(description = "기존 첨부파일 ID", required = true)
|
|
|
|
|
@PathVariable("id") Long id,
|
|
|
|
|
@Parameter(description = "프로젝트 ID", required = true)
|
|
|
|
|
@RequestParam("projectId") Long projectId,
|
|
|
|
|
@Parameter(description = "새 파일") @RequestPart("file") MultipartFile file,
|
|
|
|
|
@RequestPart(value = "path", required = false) String path,
|
|
|
|
|
@RequestParam(value = "title", required = false) String title,
|
|
|
|
|
@ -204,7 +206,7 @@ public class MinioAttachmentController {
|
|
|
|
|
) {
|
|
|
|
|
try {
|
|
|
|
|
MinioAttachmentEntity updated = minioAttachmentService.updateFile(
|
|
|
|
|
id, file, path, title, description, regUserId
|
|
|
|
|
id, projectId, file, path, title, description, regUserId
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, Object> response = new HashMap<>();
|
|
|
|
|
|