Skip to content

feat: Add file size validation for media uploads#695

Open
nino-chavez wants to merge 1 commit intoOpenCut-app:mainfrom
nino-chavez:feat/file-size-validation-653
Open

feat: Add file size validation for media uploads#695
nino-chavez wants to merge 1 commit intoOpenCut-app:mainfrom
nino-chavez:feat/file-size-validation-653

Conversation

@nino-chavez
Copy link

Summary

  • Adds pre-upload file size validation before media processing begins
  • Enforces size limits by media type:
    • Images: 50MB
    • Videos: 4GB
    • Audio: 500MB
  • Shows clear error messages with actual file size and limit (e.g., "video.mp4 (5.2 GB) exceeds the 4.00 GB limit for video files")
  • Rejects oversized files immediately, preventing browser crashes and storage issues

Test plan

  • Upload an image larger than 50MB → should show error and reject
  • Upload a video larger than 4GB → should show error and reject
  • Upload an audio file larger than 500MB → should show error and reject
  • Upload files within limits → should process normally
  • Verify error message shows correct file size and limit

Closes #653

🤖 Generated with Claude Code

- Add pre-upload validation with file size limits:
  - Images: 50MB
  - Videos: 4GB
  - Audio: 500MB
- Show clear error messages with actual file size and limit
- Reject oversized files immediately before processing
- Prevents browser crashes and storage issues from large files

Closes OpenCut-app#653

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 29, 2026

@nino-chavez is attempting to deploy a commit to the OpenCut OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Jan 29, 2026

👷 Deploy request for appcut pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 84774c4

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 29, 2026

Warning

Rate limit exceeded

@nino-chavez has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 27 minutes and 16 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

[FEATURE] File Size Validation

1 participant