For some reason, I am encountering difficulties when trying to access variables parsed within req.fields using Express-Formidable. Upon executing a console.log() of req.fields, the output is as follows:
{ 'registration[username]': '1',
'registration[password]': '11' }
Despite this, I am unable to specifically access the username or password field. Various attempts have been made, including:
console.log(req.fields.registration.username)
console.log(req.fields.registration[username])
console.log(req.fields.registration['username'])
console.log(req.fields.username)
Any assistance on this matter would be greatly appreciated. Thank you!