Skip to content

Commit

Permalink
formidable multiples fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kalesh13 committed Aug 20, 2021
1 parent b5486ac commit b46565d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ export class Request extends IncomingMessage implements IRequest {
* @returns
*/
public async getContents(): Promise<{ files: Files; fields: Fields }> {
const form = new IncomingForm();
form.multiples = true;
const form = new IncomingForm({ multiples: true });

return await new Promise((resolve, reject) => {
form.parse(this, (err, fields, files) => {
Expand Down

0 comments on commit b46565d

Please sign in to comment.