This commit is contained in:
thefosk
2014-01-08 19:07:05 -08:00
parent 257ad85e6b
commit f5fee2dc46

View File

@@ -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
) )
); );
``` ```