This repository was archived by the owner on Jul 25, 2025. It is now read-only.
form-data-parser v0.9.0
·
40 commits
to main
since this release
This release updates to multipart-parser
0.10.0 and removes the restrictions on checking the size
and/or slice
ing FileUpload
objects.
FileUpload
is now a normal subclass ofFile
with all the same functionality (instead of just implementing the same interface)- Add
maxFiles
option toparseFormData
to allow limiting the number of files uploaded in a single request
let formData = await parseFormData(request, { maxFiles: 5 });
let file = formData.get('file-upload');
let size = file.size; // This is ok now!