Skip to content

Conversation

@morepriyam
Copy link
Collaborator

@morepriyam morepriyam commented Jan 4, 2026

Fix Mobile Video Upload via QR Code

Summary

Fixes mobile app video upload functionality when connecting via QR code. Resolves network timeout issues and TUS protocol Location header handling.

Changes

  • utils/tusUpload.ts: Removed debug logging, simplified fetch calls, added Location header port normalization
  • app/merged-video.tsx: Removed debug logging
  • Nginx config (via submodule): Fixed Location header rewriting to preserve client host/port

Key Fixes

  1. Location header now includes correct port number for TUS PATCH requests
  2. Removed unnecessary timeout wrapper
  3. Cleaned up verbose debug logging

Testing

✅ Successfully uploaded 11.70 MB video in 2.3 seconds
✅ All 12 chunks uploaded correctly
✅ Works with both development (port 8080) and production (HTTPS) setups

Environment Variables

Development: Set DEV_SERVER_IP in frontend .env
Production: Use BETTER_AUTH_URL only (no DEV_SERVER_IP)

…process

- Update pulse-vault submodule to latest commit 9ce9efe.
- Remove unnecessary console logs from MergedVideoScreen and tusUpload utility to improve code cleanliness and reduce console clutter.
- Enhance error logging in tusUpload for better debugging during upload failures.
@morepriyam morepriyam merged commit 8514cbc into main Jan 4, 2026
11 checks passed
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.

2 participants