Skip to content

Commit a4ad8e0

Browse files
author
agrandiere
committed
debug set_file
1 parent 8471a9f commit a4ad8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Check.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function __construct($api_user, $api_secret, $models) {
1818

1919
public function set_file($image) {
2020
$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]]]);
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' => $file]]]);
2222

2323
return json_decode($r->getBody());
2424
}

0 commit comments

Comments
 (0)