title: Uploadifive - allowed file types like uploadifty
body: <p>With uploadify I could set the allowed file types like</p>
  
  <pre><code>'fileType' : '*.jpg;*.gif;*.png;*.jpeg;',
  </code></pre>
  
  <p>and it would display in the dialog box <code>All files(*.jpg;*.gif;*.png;*.jpeg;)</code></p>
  
  <p>Is there anyway in uploadifive to get it to work exactly like this, I have used various options that I have found in the forum and the closest I have got is from this <a href="http://www.uploadify.com/forum/#/discussion/9102/use-html5-access-attribute/p1" rel="nofollow">thread</a>
  code below:</p>
  
  <pre><code>'fileType'  : ["image\/gif","image\/jpeg","image\/png","image\/jpg", "application\/pdf"],',
  
  
  var accept_types = '';
  if(typeof settings.fileType !== 'object'){
    settings.fileType = [settings.fileType];
  }
  for (var i=0;i&lt;settings.fileType.length;i++){
     var filetype_match = /^([a-z0-9]+)$/g.exec(settings.fileType[i]);
       if(filetype_match != null){
           accept_types += filetype_match[1]+'/*,';
      }else{
           accept_types += settings.fileType[i]+',';
      }
  }
  accept_types = accept_types.slice(0,accept_types.length-1);
  if(accept_types.length &gt; 0){
     input.attr('accept', accept_types);
  }                   
  
  
   // Check the filetype
                  if (settings.fileType) {
                      if ($.isArray(settings.fileType)) {
                          var isValidFileType = 0;
                          for (var n = 0; n &lt; settings.fileType.length; n++) {
                              if (file.type.indexOf(settings.fileType[n]) &gt; -1) {
                                  alert(isValidFileType + 'valid file');
                                  isValidFileType = 1;
                              }
                          }
                          if (!isValidFileType) {
                              alert(isValidFileType + 'not validid');
                              alert(settings.fileType);
                              $data.error('FORBIDDEN_FILE_TYPE', file);
  
                          }
                      } else {
                          if (file.type.indexOf(settings.fileType) &lt; 0) {
  
                              $data.error('FORBIDDEN_FILE_TYPE', file);
                          }
                      }
                  }
  </code></pre>
  
  <p>This works great, however by default it still displays "All files(<em>.</em>)" as default with the option to select the allowed files from the drop down.</p>
  
  <p>ideally I would like it to look something like "All supported files types (.pdf, .jpeg)" etc to appear as the default</p>
  
  <p>I do not like the functionality that the forbidden file types uses as I want my users to see what files they can upload and not gamble on a click only for it to say forbidden file etc </p>
  
  <p>Thanks </p>
  
  <p>Lee</p>