Check file name type when uploading pet