Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not close the uploading page while uploading a video, without a warning message #4432

Closed
tio-trom opened this issue Sep 24, 2021 · 7 comments
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor UI non-trivial UI changes, that might need discussion

Comments

@tio-trom
Copy link

If you upload a video and close the tab by mistake while uploading, that can be a disaster if you wait hours to upload. You should get a confirmation popup to close it.

Also, resumable uploads seem to not work. If I close the uploading window and then start to upload the same video again, it won't resume.

@kukhariev
Copy link
Contributor

By default, file uploads should continue until the UploadxService is destroyed. But here, for some reason, it forces the complete removal of incomplete uploads from the server:

@tio-trom
Copy link
Author

So is this a bug or? I don't understand....

By the way, using the 3.4.0 Peertube version. This https://videos.trom.tf/about/instance

@rigelk
Copy link
Collaborator

rigelk commented Sep 25, 2021

@kukhariev because we don't store enough information to recreate the upload component if it is destroyed by changing views.

So far, in what we implemented, resumable doesn't mean "close everything and come back to the same state", but just that unstable connections will eventually go through.

@tio-trom
Copy link
Author

So is Peertube planning to add a more solid resumable-uploads feature? Would be very useful. At least show a warning to users when they close the page where an upload is happening. I think that's a must.

@ghost
Copy link

ghost commented Sep 29, 2021

The original post was about a confirmation popup, no? I think that's for sure a good idea. The upload process right now is way too disrespectful of the user's time, really.

@kontrollanten
Copy link
Contributor

A confirmation popup exists on the video edit/update page, I guess we can reuse that functionality.

@Chocobozzz Chocobozzz added good first issue Type: Feature Request ✨ Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor UI non-trivial UI changes, that might need discussion and removed Type: Feature Request ✨ good first issue labels Oct 7, 2021
@Chocobozzz
Copy link
Owner

Should be fixed by 221d876

kukhariev added a commit to kukhariev/PeerTube that referenced this issue Aug 31, 2022
Do not delete a partially uploaded file when closing the upload page

fixes Chocobozzz#5078, Chocobozzz#4432
Chocobozzz pushed a commit that referenced this issue Sep 28, 2022
Do not delete a partially uploaded file when closing the upload page

fixes #5078, #4432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor UI non-trivial UI changes, that might need discussion
Projects
None yet
Development

No branches or pull requests

5 participants