GlowUpload Control fileFilter and file max size apear not to work

GlowUpload Control fileFilter and file max size apear not to work

This question has suggested answer(s)

context.avatarUploadId.glowUpload({

               fileFilter: [{ title: "Image files", extensions: "jpg,jpeg,gif,png" }],

               hiddenInput: context.avatarUploadHiddenId.attr('id'),

               uploadUrl: context.uploadAvatarFileUrl

               })

I've tested this in all browsers and have tried various permutations but I cannot get the file extension filtering or the max file size to work?

All Replies
  • We've run into this issue as well and have come up with a workaround until a real fix comes along.

    In \Web\Utility\JQuery\telligent.glow.min.js:

    On lines 69, 70, and 151 of the minified source, change all occurrences of "fileFilters" to "fileFilter".

    On lines 69 and 151 change

    "a.pluploader=new plupload.Uploader(… the parameters object ...) if (a.fileFilters!==null) a.pluploader.filters=a.fileFilters"

    to

    "var opts = … the parameters object …;if(a.fileFilter!==null)opts.filters=a.fileFilter;a.pluploader=new plupload.Uploader(opts);"

    We've filed a support ticket for this as well. Hope you find this useful.

    Thanks,

    - HP w/ Couto Solutions