Loop Through Multiple File Mimetypes

I needed to check mimetypes to be sure the user knew right away if one of the files they wanted to upload was accepted. Here is (most of) the code I ended up using. You will need to edit to fit your needs.

Here is the HTML being used.

Check out how to get the WordPress mimetype array from PHP into Javascript here.