diff --git a/www/filepicker/inner.js b/www/filepicker/inner.js index 8ee5a56f4..aba1ed77b 100644 --- a/www/filepicker/inner.js +++ b/www/filepicker/inner.js @@ -113,7 +113,7 @@ define([ if (types.indexOf('file') !== -1 && common.isLoggedIn()) { var f = (filters && filters.filter) || {}; delete data.accept; - if (f.fileType) { + if (Array.isArray(f.fileType)) { data.accept = f.fileType.map(function (val) { if (/^[a-z]+\/$/.test(val)) { val += '*';