We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the docs and the code i cannot see a way of restricting the incoming file types.
I only want to allow a select list, is this possible?
These are the only options i could see to set with formidable:
function IncomingForm(opts) { if (!(this instanceof IncomingForm)) return new IncomingForm(opts); EventEmitter.call(this); opts=opts||{}; this.error = null; this.ended = false; this.maxFields = opts.maxFields || 1000; this.maxFieldsSize = opts.maxFieldsSize || 2 * 1024 * 1024; this.keepExtensions = opts.keepExtensions || false; this.uploadDir = opts.uploadDir || os.tmpDir(); this.encoding = opts.encoding || 'utf-8'; this.headers = null; this.type = null; this.hash = opts.hash || false; this.multiples = opts.multiples || false; this.bytesReceived = null; this.bytesExpected = null; this._parser = null; this._flushing = 0; this._fieldsSize = 0; this.openedFiles = []; return this; }
The text was updated successfully, but these errors were encountered:
Why no one answer this?
Sorry, something went wrong.
Duplicate of #387 Answer is there.
And probably use the .on('fileBegin', handler) API.
.on('fileBegin', handler)
https://github.com/felixge/node-formidable#filebegin
No branches or pull requests
From the docs and the code i cannot see a way of restricting the incoming file types.
I only want to allow a select list, is this possible?
These are the only options i could see to set with formidable:
The text was updated successfully, but these errors were encountered: