【发布时间】:2015-08-20 15:50:42
【问题描述】:
谁能给我一个名为“Multimedia.json”的模型示例,我可以使用它来存储上传的多媒体文件(音频、视频或 jpg)?具体来说,有没有一种叫做“多媒体”或“二进制”的类型? Strongloop方式的任何策略? 谢谢,
{
"name": "Multimedia",
"base": "PersistedModel",
"idInjection": true,
"options": {
"validateUpsert": true
},
"properties": {
"title": {
"type": "string",
"required":true
},
"description": {
"type": "string"
},
"category": {
"type": "string" ---can this be a type called binary?
}
},
"validations": [],
"relations": {
"report": {
"type": "belongsTo",
"model": "Report",
"foreignKey": ""
}
},
"acls": [],
"methods": []
}
【问题讨论】:
标签: multimedia strongloop loopback