form-data-parser v0.7.0
·
46 commits
to main
since this release
- BREAKING CHANGE: Override
parseFormData
signature so the upload handler is always last in the argument list.parserOptions
are now an optional 2nd arg.
import { parseFormData } from '@mjackson/form-data-parser';
// before
await parseFormData(
request,
(fileUpload) => {
// ...
},
{ maxFileSize },
);
// after
await parseFormData(request, { maxFileSize }, (fileUpload) => {
// ...
});
- Upgrade
multipart-parser
to v0.8 to fix an issue where errors would crash the process whenmaxFileSize
was exceeded (see #28) - Add an example of how to use
form-data-parser
together withfile-storage
to handle multipart uploads on Node.js - Expand
FileUploadHandler
interface to support returningBlob
from the upload handler, which is the superclass ofFile