Another option would be that frontend requests presign urls from the api, and uploads the files to s3 first, then api would extract them
allexlima/aws-lambda-python-file-upload
A few examples on how aws lambda can receive file from frontend in Python
Python