Skip to content

Commit

Permalink
Fix snake_case for uploade file_name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Mar 21, 2022
1 parent 3da472b commit cb6c4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/api_v2/endpoints/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def upload_video(boto_session: AioBaseClient, path: str, temp_video_name:
async def upload_file(
file: UploadFile = File(..., description='File to upload'),
file_name: Optional[str] = Form(
default=None, alias='fileName', example='my_file.mp4', regex=r'^[\s\w\d_-]*$', min_length=2, max_length=40
default=None, example='my_file.mp4', regex=r'^[\s\w\d_-]*$', min_length=2, max_length=40
),
boto_session: AioBaseClient = Depends(get_boto),
user: User = Depends(cognito_signed_in),
Expand Down

0 comments on commit cb6c4cc

Please sign in to comment.