From 8af822aac89757f2d5db272a70765479e62fd032 Mon Sep 17 00:00:00 2001 From: Yohann Tilotti Date: Tue, 19 Dec 2023 18:49:38 +0100 Subject: [PATCH] Fix comma fopen http_client --- http_client.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_client.rst b/http_client.rst index 614f9279f35..90718e9e45b 100644 --- a/http_client.rst +++ b/http_client.rst @@ -619,7 +619,7 @@ A generator or any ``Traversable`` can also be used instead of a closure. To submit a form with file uploads, pass the file handle to the ``body`` option:: - $fileHandle = fopen('/path/to/the/file' 'r'); + $fileHandle = fopen('/path/to/the/file', 'r'); $client->request('POST', 'https://...', ['body' => ['the_file' => $fileHandle]]); By default, this code will populate the filename and content-type with the data