We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbeaaf8 commit cca3499Copy full SHA for cca3499
src/progressive-video-uploader.ts
@@ -43,6 +43,10 @@ export class ProgressiveUploader extends AbstractUploader<ProgressiveProgressEve
43
if ((this.preventEmptyParts && (this.currentPartBlobsSize - file.size >= MIN_CHUNK_SIZE))
44
|| (!this.preventEmptyParts && (this.currentPartBlobsSize >= MIN_CHUNK_SIZE))
45
|| (!this.mergeSmallPartsBeforeUpload)) {
46
+
47
+ if (!this.mergeSmallPartsBeforeUpload && this.currentPartBlobsSize < MIN_CHUNK_SIZE) {
48
+ throw new Error(`Each part must have a minimal size of 5MB. The current part has a size of ${this.currentPartBlobsSize / 1024 / 1024}MB.`)
49
+ }
50
let toSend: any[];
51
if(this.preventEmptyParts) {
52
toSend = this.currentPartBlobs.slice(0, -1);
0 commit comments