Add some smarts to the SectionEvent for File uploads. Fixes #2236