We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8471a9f commit a4ad8e0Copy full SHA for a4ad8e0
src/Check.php
@@ -18,7 +18,7 @@ function __construct($api_user, $api_secret, $models) {
18
19
public function set_file($image) {
20
$file = fopen($image, 'r');
21
- $r = $this->http->request('POST', $this->url, ['query' => ['api_user' => $this->api_user, 'api_secret' => $this->api_secret, 'models' => $this->models],'multipart' => [['name' => 'media','contents' => $image]]]);
+ $r = $this->http->request('POST', $this->url, ['query' => ['api_user' => $this->api_user, 'api_secret' => $this->api_secret, 'models' => $this->models],'multipart' => [['name' => 'media','contents' => $file]]]);
22
23
return json_decode($r->getBody());
24
}
0 commit comments