Uploads which take a long time don’t complete before the session timeout.
You can see the upload still running when the session expiry pop-up showed…