Skip to content

fix: stream video uploads to disk#13

Open
luojiyin1987 wants to merge 2 commits intoApeCodeAI:masterfrom
luojiyin1987:fix/stream-upload
Open

fix: stream video uploads to disk#13
luojiyin1987 wants to merge 2 commits intoApeCodeAI:masterfrom
luojiyin1987:fix/stream-upload

Conversation

@luojiyin1987
Copy link
Copy Markdown
Contributor

Summary

  • stream uploaded video content to disk in 1MB chunks
  • reject oversize uploads while counting bytes instead of after full buffering
  • clean up the temp session when upload writing fails or exceeds the limit
  • add regression coverage for successful streamed uploads and oversize rejection

Testing

  • uv run pytest -q tests/test_video_api.py
  • uv run pytest -q

Closes #12

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

@luojiyin1987 is attempting to deploy a commit to the apecodelab's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stream video uploads to disk instead of buffering whole files

1 participant