const form = new formidable.IncomingForm({
maxFileSize: 2000 * 1024 * 1024,
});
IncomingForm {
_events: [Object: null prototype] { field: [Function (anonymous)] },
_eventsCount: 1,
_maxListeners: undefined,
options: {
maxFields: 1000,
maxFieldsSize: 20971520,
maxFileSize: 2097152000,
minFileSize: 1,
allowEmptyFiles: true,
keepExtensions: false,
encoding: 'utf-8',
hashAlgorithm: false,
uploadDir: 'sadf/asdf',
multiples: false,
enabledPlugins: [ 'octetstream', 'querystring', 'multipart', 'json' ],
fileWriteStreamHandler: null,
defaultInvalidName: 'invalid-name',
filter: [Function: filter]
},
uploadDir: '/asdfsdf/asdfsf',
error: null,
headers: null,
type: null,
bytesExpected: null,
bytesReceived: null,
_parser: null,
_getNewName: [Function (anonymous)],
_flushing: 0,
_fieldsSize: 0,
_fileSize: 0,
_plugins: [
[Function: bound plugin],
[Function: bound plugin],
[Function: bound plugin],
[Function: bound plugin]
],
openedFiles: [],
[Symbol(kCapture)]: false
}