extracted function & moved to base controller for flashing file upload errors
fixed it ignoring the import text area