Currently I am creating a filemanager.
What I want is to check if the user has selected a video file. The file can be mov, f4v, flv<
mov
f4v
flv<
you need to split them up, like so:
if(ext === "mov" || ext === "f4v" || ext === "flv" || ext === "mp4" || ext === "swf") { // do stuff }
you could also consider putting all the different extension in an array and checking whether ext exists in that array