Skip to content

Commit

Permalink
Resolved #11, Update Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta authored Dec 5, 2018
1 parent 80aeaed commit 740cea4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function cache($adapter, $originalPath, $cachePath, $mime, $stream = fals
{
$row = $this->baseClass->db->select('files', '*', ['file_path' => $originalPath])->result();
if (empty($row['file_id'])) {
$put = $this->put($adapter, $originalPath, $mime);
$put = $this->put($adapter, $originalPath, $mime, $stream);
$row['file_id'] = $put['lastInsertId'];
}

Expand Down

0 comments on commit 740cea4

Please sign in to comment.