Show warning box if closing window or tab uploading.
Show a warning box, preventing a window or tab being closed, if that window is uploading something e.g file manager. Or is doing a critical task that requires the window or tab to be open.
Lloyd Mason commented
Could be an addition to this, preventing the upload failing when the user session expires.