Skip to content

Commit 6125c15

Browse files
authored
Update packages/multipart-parser/src/lib/multipart.ts
1 parent d774622 commit 6125c15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/multipart-parser/src/lib/multipart.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export interface ParseMultipartOptions {
5555
*/
5656
maxFileSize?: number
5757

58+
/**
59+
* If this is true, or not defined, use MultipartContentPart class, which includes a contents array and getters referencing it, and stores the entire file in the contents array in memory.
60+
*
61+
* If this is false, use the MultipartPart class, which only has header related fields. The append method must be overriden in the onCreatePart callback to receive each chunk and process it as desired.
62+
*
63+
*/
5864
useContentPart?: boolean
5965
onCreatePart?(part: MultipartPart): Promise<void> | void
6066
}

0 commit comments

Comments
 (0)