I'm allowing users to upload a file, however I need to check if the file has a proper name (since using multiple '.' characters throws off the .split() method). Here's what I have so far:
//Check if filename has more than 1 period character in the whole thing.
if(this.file.name.???){
this.fileNameAccepted = true;
} else {
this.fileNameAccepted = false;
}