Skip to content

Feat: 경험 정리 대화 시 파일 업로드 기능 추가#360

Merged
hyoinkang merged 3 commits intodevfrom
feat/chat-file-#359
Mar 27, 2026
Merged

Feat: 경험 정리 대화 시 파일 업로드 기능 추가#360
hyoinkang merged 3 commits intodevfrom
feat/chat-file-#359

Conversation

@hyoinkang
Copy link
Copy Markdown
Contributor

@hyoinkang hyoinkang commented Mar 27, 2026

Summary

AI 서버 스펙 변경에 맞춰 chat-stream 시 파일 업로드가 가능하도록 기능 추가

Changes

  • 하나의 대화에서 파일 최대 1개, 10MB 이하로 업로드 가능
  • pdf 및 이미지만 업로드 가능하며, 검증을 수행

Type of Change

해당하는 항목에 체크해주세요:

  • Bug fix (기존 기능을 수정하는 변경)
  • New feature (새로운 기능 추가)
  • Breaking change (기존 기능에 영향을 주는 변경)
  • Refactoring (기능 변경 없이 코드 개선)
  • Documentation (문서 변경)
  • Chore (빌드, 설정 등)

Target Environment

배포 대상 브랜치를 선택해주세요:

  • Dev (dev)
  • Prod (main)

Related Issues

관련 이슈를 연결해주세요:

Testing

테스트 방법을 작성해주세요:

  • Postman/Swagger로 API 호출 확인
  • 단위 테스트 통과
  • E2E 테스트 통과

Checklist

PR 생성 전 확인사항:

  • 코드 컨벤션을 준수했습니다 (docs/development/CODE_STYLE.md)
  • Git 컨벤션을 준수했습니다 (docs/development/GIT_CONVENTIONS.md)
  • 네이밍 컨벤션을 준수했습니다 (docs/development/NAMING_CONVENTIONS.md)
  • 로컬에서 빌드가 성공합니다 (pnpm run build)
  • 로컬에서 린트가 통과합니다 (pnpm run lint)
  • (API 변경 시) Swagger 문서가 업데이트되었습니다
  • (필요 시) 테스트 코드를 작성했습니다

Screenshots (Optional)

UI 변경이 있다면 스크린샷을 첨부해주세요.

Additional Notes

리뷰어에게 전달할 추가 정보가 있다면 작성해주세요.

- 하나의 대화에서 파일 최대 1개, 10MB 이하로 업로드 가능
@hyoinkang hyoinkang linked an issue Mar 27, 2026 that may be closed by this pull request
16 tasks
@hyoinkang hyoinkang self-assigned this Mar 27, 2026
@hyoinkang hyoinkang added ✨ feature New feature or request 효인 labels Mar 27, 2026
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

본 PR은 AI 서버 스펙 변경에 대응하여 경험 정리 대화 중 파일 업로드를 지원하기 위한 기능입니다. 기존의 JSON 기반 요청을 멀티파트 폼 데이터로 전환하고, 파일 형식 및 크기 제한을 포함한 검증 로직을 추가하여 안정적인 파일 전송을 보장합니다.

Highlights

  • 파일 업로드 기능 추가: 경험 정리 대화 시 최대 1개, 10MB 이하의 PDF 및 이미지 파일을 업로드할 수 있는 기능을 추가했습니다.
  • 멀티파트 요청 처리: Busboy를 사용하여 멀티파트 폼 데이터를 파싱하고, AI 서버로 전송하기 위해 요청 구조를 개선했습니다.
  • API 스펙 업데이트: Swagger 문서에 파일 업로드 관련 명세를 추가하고, 관련 유효성 검증 로직을 구현했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: *.md (1)
    • docs/API.md
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a multipart/form-data parser service to handle file uploads in the interview chat stream. It updates the interview service and facade to support file attachments, configures the necessary Swagger decorators for multipart requests, and adds comprehensive unit tests for the new parser. The review feedback highlights opportunities to improve the robustness of the multipart parsing logic by explicitly setting field size limits, handling value truncation, and refining error event handling for better error reporting.

- 대화 시 파일 업로드 최대 3개까지 가능
- field의 truncation 확인 로직 추가 (busboy validation)
@hyoinkang hyoinkang merged commit 1909455 into dev Mar 27, 2026
3 of 4 checks passed
@hyoinkang hyoinkang deleted the feat/chat-file-#359 branch March 27, 2026 16:12
hyoinkang added a commit that referenced this pull request Apr 15, 2026
* feat: 대화 시 파일 업로드 기능 추가

- 하나의 대화에서 파일 최대 1개, 10MB 이하로 업로드 가능

* refactor: 파일 업로드 최대 3개까지 가능하도록 확장

- 대화 시 파일 업로드 최대 3개까지 가능
- field의 truncation 확인 로직 추가 (busboy validation)

* refactor: 파일 처리에 대한 에러 응답 명확화 및 세분화
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature New feature or request 효인

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 인터뷰 시 파일 업로드 기능 추가

1 participant