How to upload a file using the new controller actions format in sails.js
Clash Royale CLAN TAG #URR8PPP 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: { responseType: 'server error', description: `Failed to upload the file`, } }, fn: async function (inputs, exits) { // fixme inputs.file('recording').upload({ adapter: require('skipper-s3'), key: proce...