Effective default queue limit of 0
If you don't set the queueLimit manually, then it's undefined, so the queueLimitFilter never allows any files by default. I modified the filter to ignore the queueLimit if it's undefined.
This commit was merged in pull request #58.
This commit is contained in:
@@ -225,7 +225,7 @@ export class FileUploader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _queueLimitFilter() {
|
private _queueLimitFilter() {
|
||||||
return this.queue.length < this.queueLimit;
|
return this.queueLimit === undefined || this.queue.length < this.queueLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _isValidFile(file:any, filters:any, options:any) {
|
private _isValidFile(file:any, filters:any, options:any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user