You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to find out how to detect when the browser activates sleep prevention (logs, enable debug logging, operating system logs?)
We could make an Uppy plugin that uses the WakeLock API by default, but with an optional (configurable) fallback to some hack like video/audio tag or similar
Allow the upload to resume if it’s interrupted by a sleep or similar. However that is a different issue that should also be fixed regardless of the current issue. See #3783
The text was updated successfully, but these errors were encountered:
Problem
While uploading a large file, the computer or phone might go to sleep, we should prevent this
Solution
We could use the WakeLock API but it seems to have limited browser support.
Maybe we can implement a
<video>
tag with a looping 1-pixel video or so. https://stackoverflow.com/questions/59471449/how-to-prevent-screen-sleep-using-javascriptNeed to find out how to detect when the browser activates sleep prevention (logs, enable debug logging, operating system logs?)
We could make an Uppy plugin that uses the WakeLock API by default, but with an optional (configurable) fallback to some hack like video/audio tag or similar
See also #1725
Alternatives
Allow the upload to resume if it’s interrupted by a sleep or similar. However that is a different issue that should also be fixed regardless of the current issue. See #3783
The text was updated successfully, but these errors were encountered: