 
   settings =
     path: ''
+    types: false
     additional_data: null
     before_add: null
     remove_completed_progress_bar: true

    progress_bar_target: null
    click_submit_target: null
    allow_multiple_files: true

  $.extend settings, options


      add: (e, data) ->
        file = data.files[0]
        file.unique_id = Math.random().toString(36).substr(2,16)
        if settings.types
          unless settings.types.test(file.type) || settings.types.test(file.name)
            return alert("File does not match required filetype.")

        unless settings.before_add and not settings.before_add(file)
          current_files.push data
