el-upload上传文件到后端
时间: 2023-08-25 21:09:30 浏览: 137
el-upload标签是elementUI中的上传控件,用于将文件上传到后端。在前端代码中,可以看到el-upload标签的属性中有一个action属性,该属性指定了文件上传的后端路径。在\[1\]中,action属性的值为后端上传路径,而在\[2\]中,action属性的值为"#",表示上传的请求将发送到当前页面。在\[3\]中,action属性的值为"https://jsonplaceholder.typicode.com/posts/",表示上传的请求将发送到该URL。因此,el-upload标签的action属性可以根据具体的需求设置为相应的后端上传路径。
#### 引用[.reference_title]
- *1* [使用el-upload上传单文件多文件前后端实现](https://blog.csdn.net/qq_43780761/article/details/126564877)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [前端文件上传及后端接收(el-upload标签的使用)](https://blog.csdn.net/Hsssc/article/details/109067378)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [vue el-upload实现上传文件到后台的功能](https://blog.csdn.net/qq_42345108/article/details/102824501)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文