readme
This commit is contained in:
@@ -71,7 +71,7 @@ To upload files in a multipart form representation use the return value of `Unir
|
|||||||
```php
|
```php
|
||||||
$response = Unirest::post("http://httpbin.org/post", array( "Accept" => "application/json" ),
|
$response = Unirest::post("http://httpbin.org/post", array( "Accept" => "application/json" ),
|
||||||
array(
|
array(
|
||||||
"file" => Unirest::file("/tmp/file.txt")
|
"file" => Unirest::file("/tmp/file.txt") // Tells Unirest where the file is located
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user