Skip to content

[BUG] No browser warning when attempting to leave page during video upload #1118

@xannyxs

Description

@xannyxs

Describe the bug
The browser does not display a confirmation dialog when attempting to close the window or refresh the page while a video upload is in progress. This can lead to interrupted uploads and lost progress if users accidentally navigate away from the page.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to /studio/{organizationSlug}/library
  2. Click "Upload Video" and select any video file to begin upload
  3. While upload is in progress, either:
    • Attempt to close the browser window
    • Click the browser's refresh button
    • Navigate to a different URL
  4. Observe that no warning dialog appears before leaving the page
  5. Return to the library page to see that the upload was interrupted

Expected behavior
When attempting to leave the page during an active video upload:

  1. Browser should display a standard "Changes you made may not be saved" warning dialog
  2. User should be required to confirm whether they want to leave or stay on the page
  3. If user chooses to stay, the upload should continue uninterrupted

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🔖 To-Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions