Skip to content

Commit 5ea2d04

Browse files
committed
Merge pull request php-curl-class#56 from zborboa-google/patch-3
Add CURLFile example to README
2 parents cdf9e78 + 07b362c commit 5ea2d04

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ $curl->patch('http://api.example.com/profile/', array(
7373
));
7474
```
7575

76+
```php
77+
$curl = new Curl();
78+
$curl->patch('http://api.example.com/profile/', array(
79+
'image' => new CURLFile('path/to/file.jpg'),
80+
));
81+
```
82+
7683
```php
7784
$curl = new Curl();
7885
$curl->delete('http://api.example.com/user/', array(

0 commit comments

Comments
 (0)