Skip to content

Commit d0e8946

Browse files
authored
Merge pull request #31 from SynergyX-AI-Pattern/feat/#16_stock_search_by_image
[FIX] 이미지 업로드 크기 제한 상향 (5MB -> 20MB) #16
2 parents 4b29a99 + 34a412e commit d0e8946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/api/v1/endpoints/stocks/image_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
summary="이미지 기반 종목 검색",
1818
description="""
1919
업로드된 이미지로부터 브랜드를 인식하여 종목 정보를 반환합니다.
20-
최대 5MB 파일만 업로드 가능합니다.
20+
최대 20MB 파일만 업로드 가능합니다.
2121
""",
2222
tags=["Stock"]
2323
)
@@ -26,9 +26,9 @@ async def search_stock_by_image(
2626
db: Session = Depends(get_db)
2727
):
2828
contents = await image.read()
29-
MAX_IMAGE_SIZE = 5 * 1024 * 1024 # 5MB
29+
MAX_IMAGE_SIZE = 20 * 1024 * 1024 # 20MB
3030

31-
# 파일 크기 제한(5MB)
31+
# 파일 크기 제한
3232
if len(contents) > MAX_IMAGE_SIZE:
3333
raise APIException(ErrorStatus.FILE_TOO_LARGE)
3434

0 commit comments

Comments
 (0)