2021年9月10日

ajax 文件上传

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div class="upload-btn"> <input type="file" name="f 阅读全文
posted @ 2021-09-10 01:32 棍棍的爱情 阅读(25) 评论(0) 推荐(0) 编辑

多文件上传

摘要: 控制器: 1 // 多文件上传 2 public function uploads() 3 { 4 //接受参数 5 $data = []; 6 $files = \request()->file('imgs'); 7 8 foreach ($files as $file) { 9 // 移动到框架 阅读全文
posted @ 2021-09-10 01:16 棍棍的爱情 阅读(29) 评论(0) 推荐(0) 编辑

多文件上传

摘要: 多文件上传接口 路由: use think\Route;Route::post('imgs','lx/Lx/uploads');控制器: // 多文件上传 public function uploads() { //接受参数 $data = []; $files = \request()->file 阅读全文
posted @ 2021-09-10 01:04 棍棍的爱情 阅读(24) 评论(0) 推荐(0) 编辑