File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ const defaultInsertOpts = {
88 meta : { } ,
99 isBase64 : false ,
1010 transport : 'ddp' ,
11- streams : 'dynamic' ,
1211 chunkSize : 'dynamic' ,
1312 allowWebWorkers : true
1413} ;
@@ -45,7 +44,7 @@ Template.afFileUpload.onCreated(function () {
4544
4645 if ( ! this . collection ) {
4746 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.' ) ;
4948 }
5049
5150 this . uploadTemplate = this . data . atts . uploadTemplate || null ;
@@ -54,12 +53,6 @@ Template.afFileUpload.onCreated(function () {
5453 this . insertConfig = Object . assign ( { } , defaultInsertOpts , this . data . atts . insertConfig || { } ) ;
5554 delete this . data . atts . insertConfig ;
5655
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-
6356 if ( ! isNaN ( this . insertConfig . chunkSize ) ) {
6457 this . insertConfig . chunkSize = parseInt ( this . insertConfig . chunkSize ) ;
6558 } else if ( this . insertConfig . chunkSize !== 'dynamic' ) {
You can’t perform that action at this time.
0 commit comments