今天項目中,運用到了經過curl傳輸圖片,留下作筆記php
foreach ($files as $key => $file) { $post[$key] = '@'.realpath($file['tmp_name']).";type=".$file['type'].";filename=".$file['name']; }