diff --git a/client/functions.coffee b/client/functions.coffee index 55110a1..391fea3 100644 --- a/client/functions.coffee +++ b/client/functions.coffee @@ -57,8 +57,9 @@ Cloudinary = if _.isFunction ops callback = ops ops = {} - - if not _.isArray files + # _.isArray is returning false, when files is instance of FileList + # but we need to iterate thru FileList too, like it is an array + if !_.isArray(files) && !(files instanceof FileList) file = files reader = new FileReader @@ -146,4 +147,4 @@ Cloudinary = # Define helpers Template.registerHelper "c", -> - Cloudinary._helpers \ No newline at end of file + Cloudinary._helpers