createBoundary
createBoundary():
string
Defined in: multipart.ts:39
Generate a multipart boundary.
The boundary must not appear anywhere in the encoded body. Rather than scanning the file to prove that, we use 128 bits of randomness, which makes an accidental collision less likely than a disk error corrupting the upload anyway.
Returns
Section titled “Returns”string
A boundary string, comfortably under the 70-character limit.