In my application i am choosing the files using file uploader suppose if i choose files those 15 files contains .mp3,.doc and .docx extensions.I need to seperate them and store them in a array.How can i do this
if (filuploadmp3.HasFile == true)
        {
            for (int i = 0; i < Request.Files.Count; i++)
            {
                HttpPostedFile PostedFile = Request.Files[i];
                if (PostedFile.ContentLength > 0)
                {
                    string FileName = System.IO.Path.GetFileName(PostedFile.FileName);
                    string extension = System.IO.Path.GetExtension(FileName);
                    if (extension == ".wav")
                    {
                        string[] arr = 
                    }
                   
                }
            }
        }
i had checked so many codes but all of them are extracted from directories but i do not use any directories i just choos the files from my desktop and click upload when i click upload i need to seperate these extensions how can i do this