One file part of a form body: a field that declared a filename in its
Content-Disposition.
filename is present exactly when the part declared one — an empty string
still counts, because an empty <input type="file"> sends filename=""
and the web standard reports a (nameless) File for it. The bytes are the
parser's own synchronous view — no await, no copy. size is deliberately
omitted: data.byteLength is the same number.
One file part of a form body: a field that declared a
filenamein itsContent-Disposition.filenameis present exactly when the part declared one — an empty string still counts, because an empty<input type="file">sendsfilename=""and the web standard reports a (nameless)Filefor it. The bytes are the parser's own synchronous view — noawait, no copy.sizeis deliberately omitted:data.byteLengthis the same number.Since
0.6.0