filename checking when uploading files