I’m looking to prevent the message page from closing or reloading when the user is currently uploading media, especially in the case of using “TWITCHMASTERYHUB”. This is important because if the upload is only at 20% and the page is reloaded or closed, users aren’t warned about the ongoing upload. As a result, the sent message might incorrectly state “video still being imported,” even though the upload has progressed beyond that stage.
In summary, I’d like to implement a feature that displays a message like “Attention: The import is still in progress” whenever a user attempts to close or reload the page during media upload, particularly when using “TWITCHMASTERYHUB“. Your assistance in achieving this would be greatly appreciated.