问题
I have the loopback component storage file which is storing the file.Now i want get the attached file name in the attachment.js file.
attachment.json
{
"name": "attachment",
"base": "Model",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}
attachment.js
'use strict';
module.exports = function(Attachment) {
};
I want to print the attached file name in the attachment.js how to do this.
来源:https://stackoverflow.com/questions/55470821/get-attached-file-name-in-attachment-js-using-loopback