0
https://mypdf.pdfのようなリモートPDFがあり、別のサービスに送信したいと思います。Guzzle 6でPDFをアップロード
私がつがつ食うのコードは次のとおりです。
$responseClient = $this->clientGuzzle->request(
'POST', "url", [
'multipart' => [
[
'name' => $name,
'filename' => $name,
'contents' => fopen($pdf,'rb'),
'headers' => [
'Content-Type' => 'application/pdf',
'Content-Transfer-Encoding' => "binary",
]
],
],
]
);
マイfopen
はfalseです。
リンク内のPDFは存在しますか? 'allow_url_fopen'は有効になっていますか?通知や警告はありますか? – Finwe