File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const defaultInsertOpts = {
8
8
meta : { } ,
9
9
isBase64 : false ,
10
10
transport : 'ddp' ,
11
- streams : 'dynamic' ,
12
11
chunkSize : 'dynamic' ,
13
12
allowWebWorkers : true
14
13
} ;
@@ -45,7 +44,7 @@ Template.afFileUpload.onCreated(function () {
45
44
46
45
if ( ! this . collection ) {
47
46
throw new Meteor . Error ( 404 , `[meteor-autoform-files] No collection found by name "${ this . data . atts . collection } "` ,
48
- ` Collection's name is case-sensetive. Please, make sure you're using right collection name.` ) ;
47
+ ' Collection\ 's name is case-sensetive. Please, make sure you\ 're using right collection name.' ) ;
49
48
}
50
49
51
50
this . uploadTemplate = this . data . atts . uploadTemplate || null ;
@@ -54,12 +53,6 @@ Template.afFileUpload.onCreated(function () {
54
53
this . insertConfig = Object . assign ( { } , defaultInsertOpts , this . data . atts . insertConfig || { } ) ;
55
54
delete this . data . atts . insertConfig ;
56
55
57
- if ( ! isNaN ( this . insertConfig . streams ) ) {
58
- this . insertConfig . streams = parseInt ( this . insertConfig . streams ) ;
59
- } else if ( this . insertConfig . streams !== 'dynamic' ) {
60
- this . insertConfig . streams = 'dynamic' ;
61
- }
62
-
63
56
if ( ! isNaN ( this . insertConfig . chunkSize ) ) {
64
57
this . insertConfig . chunkSize = parseInt ( this . insertConfig . chunkSize ) ;
65
58
} else if ( this . insertConfig . chunkSize !== 'dynamic' ) {
You can’t perform that action at this time.
0 commit comments