moxiecode/plupload — Issue #474: Using Flash runtime  (Cannot call method "setFileFilters" of null?)
Author: felixchan
Created: 2012-01-29 05:37:40+00:00
State: open

Hi,

Would really appreciate it if someone could help me.

```
Uncaught TypeError: Cannot call method 'setFileFilters' of null
(anonymous function)plupload.full.js:2
g.Uploader.g.extend.triggerplupload.full.js:2
g.Uploader.g.extend.refreshplupload.full.js:2
d.runtimes.Flash.d.addRuntime.init.n.bind.n.bind.tplupload.full.js:2
g.Uploader.g.extend.triggerplupload.full.js:2
g.Uploader.g.extend.init.A.bind.E
```

the code is:

```
var uploader = new plupload.Uploader({
runtimes : 'gears,html5,flash,silverlight',
browse_button : 'pickfiles',
container : 'upload_body',
max_file_size : this.max_size,
url : '/js/uploader/image?ckind=' + this.ckind,
flash_swf_url : '/media/js/lib/plupload/js/plupload.flash.swf',
silverlight_xap_url : '/media/js/lib/plupload/js/plupload.silverlight.xap',
filters : [
{title : "Image files", extensions : "jpg,gif,png,jpeg"}
]
});
uploader.init();
```

Error occurs in latest Chrome + latest Opera.

On IE8, the error is "null" is null or not an object.

Thanks!