How to upload a file using the new controller actions format in sails.js
问题 Someone know how I could upload a file to a controller action using the (inputs, exists) format of sails.js, this is my try: module.exports = { friendlyName: 'Upload file recording', description: 'Upload a recording to AWS', inputs: { name: { required: true, type: 'string' }, mimeType: { required: true, type: 'string' }, recording: { type: 'ref' } }, exits: { noRecordings: { responseType: 'no recordings', description: `You don't have any recording for this event`, }, serverError: {