-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hello Folks,
I want to perform operation where attachments are coming as a parameter. How can we achieve it?
Customerfeedback.remoteMethod(
'sendFeedback', {
http: {
path: '/sendFeedback',
verb: 'post'
},
returns: [{
arg: 'records',
type: 'array'
},
{
arg: 'status',
type: 'string'
},
{
arg: 'statusDescription',
type: 'string'
},
],
accepts: [{
arg: 'customerFeedback',
type: 'Object',
http: { source: 'body' }
}, {
arg: 'file1',
type: 'string',
required: false
}, {
arg: 'file2',
type: 'string',
required: false
},
{
arg: 'env',
type: 'string'
}, {
arg: 'logUser',
type: 'string'
}]
}
);
What type we need to define for file1/file2 so It will act like an attachment?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels