darukjs / daruk

a node.js web framework based on typescript
http://darukjs.com
MIT License
935 stars 79 forks source link

希望能完善一下文档 #85

Closed GaryChangCN closed 5 years ago

GaryChangCN commented 5 years ago

Is your feature request related to a problem? Please describe. 按着默认配置是没法有上传文件的。

Describe the solution you'd like 需要在配置中加入 multipart true 才能开启

Describe alternatives you've considered 如果文档有说明就好了

Additional context Add any other context or screenshots about the feature request here.

imakan commented 5 years ago

因为daruk内置了koa-body,我们只需要配置相应的信息,这个配置需要在daruk.init.ts中,配置bodyOptions选项,

bodyOptions:{
    multipart: true
  }

稍后我们会补上文档