controller文件上传
时间: 2023-09-13 15:03:39 浏览: 96
文件上传的Controller是用来处理文件上传请求的控制器。根据引用,可以通过Sails.js的命令`sails generate controller upload`来创建一个名为"upload"的Controller。在配置文件`routers.js`中,可以将文件上传的路由指向名为"uploadAttachment"的处理方法,如引用所示。这样,当发送POST请求到"/api/file/upload/attachment"时,
#### 引用[.reference_title]
- *1* *2* [Sails基础之Controller层上传文件](https://blog.csdn.net/xreztento/article/details/90269440)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Java Spring MVC 上传下载文件配置及controller方法详解](https://download.csdn.net/download/weixin_38704835/12792807)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文