nocobase/docs/plugins/packages/file-manager.md
chenos d5d0e1036b
docs: add docs (#75)
* docs: add docs

* ignore dumi theme test

* fix: error TS2717: Subsequent property declarations must have the same type.

* update docs

* deploy gh-pages

* plugins docs

* hash & cname

* exportStatic

* ssr

* vercel

* vercel

* fix: deploy vercel

* Delete vercel.json

* docs

* fix APP_DIST

* on master branch
2021-04-17 21:33:21 +08:00

491 B

title
@nocobase/plugin-file-manager

@nocobase/plugin-file-manager

文件管理器

安装

yarn nocobase pull file-manager --start

Field Interfaces

attachment

附件字段

Action API

upload

文件上传

// 文件管理器接口
await api.resource('attachments').upload({});

// 附件字段接口
await api.resource('users.avatar').upload({
  associatedKey: 1,
});

Storages

local

本地存储

ali-oss

阿里云 OSS