Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

form-data-parser v0.9.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Jun 18:03
· 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 sliceing FileUpload objects.

  • FileUpload is now a normal subclass of File with all the same functionality (instead of just implementing the same interface)
  • Add maxFiles option to parseFormData 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!