Get attached file name in attachment.js using loopback

妖精的绣舞 提交于 2019-12-13 05:39:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!