jeudi 4 mai 2017

condition in if statement (javascript)

how to detect the the type of file whether the file is pdf or jpg? I try like statement below, but it only detect .jpg file. Thanks

                if (file[i] == 'pdf'||file[i] == 'jpg')  {
                    (condition)
                }

Aucun commentaire:

Enregistrer un commentaire