文件上传
控件绑定的字段对应的模型的字段类型需要是json
文件上传的控件类型是Upload,文件类型filetype支持三种:video,image,file
json
{
"下载地址": {
"view": {
"type": "A",
"compute": "Download",
"props": {}
},
"edit": {
"type": "Upload",
"compute": "Upload",
"props": {
"filetype": "file",
"$api": {
"process": "fs.system.Upload"
}
}
},
"bind": "url"
}
}