Skip to content

Commit c27de71

Browse files
committed
⚠️ Deprecate streams .upload method option
1 parent 2f463b4 commit c27de71

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/client/fileUpload.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)