Warn when leaving the page during file upload. Refs #368