Add warning before navigating away during upload