implement allowedFileTypes functionality

Hi needed a dropbox browser, which only allowed certain file types, so addressed the bug you were seeing