I am trying to upload the file but there is \'TypeError: Cannot read property \'path\' of undefined\'. Is there any way to solve this?
exports.postimport = funct
The reason you might be getting path of undefined may be that your destination directory (i.e path to your uploads folder) is not correct.