fix: resolve video upload bulk handling and redirect issues
Description:
Fixed multiple issues related to media uploads and category rendering consistency across upload flows.
Changes Made:
- Fixed single and bulk video upload failures
- Fixed partial upload issue like:
- “1 of 5 uploads failed”
- “All uploads failed”
- Fixed upload state conflicts during multi-file uploads
- Fixed upload session/chunk isolation for each file
- Fixed redirect to home page after successful uploads
- Fixed stale upload state handling in
ContentInput.tsx - Improved video upload handling and cleanup logic
- Fixed object URL cleanup/revoke handling
- Fixed media upload test failures
- Ensured upload flow stability for video uploads
- Fixed inconsistent category rendering across upload pages
- Unified category visibility for:
- Text
- Image
- Video
- Audio
- Document uploads
Type of Change:
- Bug Fix
-
Feature Development -
Documentation
-
Testing:
- Tested on desktop
-
Tested on mobile -
Tested in different browsers
-
Verified Scenarios:
- Single video upload
- Bulk video upload (2–5 files)
- Upload success redirect flow
- Category rendering consistency
- Audio/Image/Document upload regression testing
- Vitest/media upload tests
Screenshots (if applicable):
Added screenshots for:
- Successful bulk upload flow
- Redirect behavior
- Consistent category rendering across upload pages
AI Usage:
AI assistance was used during debugging, upload-state analysis, async flow stabilization, and test-failure resolution.
Link to code walkthrough:
Add walkthrough/demo link here.
Checklist:
- Code follows project style guidelines
-
Self-review completed -
No console errors -
TypeScript types are correct
-