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