i am using loop back storage component for file upload. request contains both file and user data. After file upload, i need user data to save file info. I am trying to access user data using beforeRemote method and afterRemote method as below:
Storages.beforeRemote('upload', function (context, unused, next) {
console.log(context.req.body)
next();
});
Storages.afterRemote('upload', function (context, unused, next) {
console.log(context.req.body)
next();
});
but it did not work. is there any way to access request params in remote methods?