Component file upload validation and upload fixes