在节点js中使用环回读取文件的内容时遇到问题 请调查附件 TIA
module.exports = function(Container) {
Container.getFile = (req, res, cb) => {
console.log(req.files)
cb(null, null)
}
Job.remoteMethod('getFile', {
accepts: [
{arg: 'req', type: 'object', 'http': {source: 'req'}},
{arg: 'res', type: 'object', 'http': {source: 'res'}},
],
http: {
path: '/read',
verb: 'get',
status: 200,
},
})
};