MCPcopy
hub / github.com/moxiecode/plupload / addFileFilter

Function addFileFilter

src/Uploader.js:1210–1212  ·  view source on GitHub ↗

* Registers a filter that will be executed for each file added to the queue. * If callback returns false, file will not be added. * * Callback receives two arguments: a value for the filter as it was specified in settings.filters * and a file to be filtered. Callback is executed in the conte

(name, cb)

Source from the content-addressed store, hash-verified

1208 * @param {String} cb Callback - the actual routine that every added file must pass
1209 */
1210 function addFileFilter(name, cb) {
1211 fileFilters[name] = cb;
1212 }
1213
1214
1215 /**

Callers 1

Uploader.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected