Added File Upload Logic

Check file name validity