I've noticed that when uploading long-ish videos to social media, if the device goes to autolock, invariably I'll see the upload failed. Not a problem if one is continuously using the device so screen-lock doesn't activate, but if the file is taking over an hour...

How can I stop screen-lock from breaking my uploads?


UPDATE:

Adding feedback from @Tetsujin:

Apparently the developer of the app themselves can disable Screen-lock from activating while there's on-going activity. However, if they don't, the following is a hack to stop Screen-Lock from activating and busting your uploads.

In "Settings,":

"Display & Brightness" > "Auto-Lock" and choose "Never"

Don't forget to restore the previous value to something more reasonable after your upload completes or you'll run your battery flat quickly.

It's a bit counter-intuitive that just because screen-lock kicks-in, your connections should all break. If we say Screen-Lock is to stop an unattended phone being abused, it doesn't necessarily follow that you want all your uploads to be killed...