今天项目中,运用到了通过curl传输图片,留下做笔记 foreach ($files as $key => $file) { $post[$key] = '@'.realpath($file['tmp_name']).";type=".$file['type'].";filename=".$file['name'];}登入後複製