Skip to content

Commit

Permalink
chore: rename fallback option per PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpillsbury committed Apr 24, 2024
1 parent 99cab55 commit b8759ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/upchunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export interface UpChunkOptions {
dynamicChunkSize?: boolean;
maxChunkSize?: number;
minChunkSize?: number;
useFileSliceFallback?: boolean;
useLargeFileWorkaround?: boolean;
}

export class UpChunk {
Expand Down Expand Up @@ -390,7 +390,7 @@ export class UpChunk {
this.success = false;
this.nextChunkRangeStart = 0;

if (options.useFileSliceFallback) {
if (options.useLargeFileWorkaround) {
const readableStreamErrorCallback = (event: CustomEvent) => {
// In this case, assume the error is a result of file reading via ReadableStream.
// Retry using ChunkedFileIterable, which reads the file into memory instead
Expand Down

0 comments on commit b8759ba

Please sign in to comment.