swaf/src/FileUploadMiddleware.ts

11 lines
351 B
TypeScript

import {IncomingForm} from "formidable";
export default class FileUploadMiddleware {
public readonly formFactory: () => IncomingForm;
public readonly defaultField: string;
public constructor(formFactory: () => IncomingForm, defaultField: string) {
this.formFactory = formFactory;
this.defaultField = defaultField;
}
}