Skip to content

Commit

Permalink
Fix comma fopen http_client
Browse files Browse the repository at this point in the history
  • Loading branch information
ytilotti authored Dec 19, 2023
1 parent 2c1c4b6 commit 8af822a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8af822a

Please sign in to comment.