Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Fixed bug in formatBody method for when users used the file method to save their image.
  • Loading branch information
mtownsend5512 committed Nov 13, 2019
1 parent 86428e9 commit 42de26e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/RemoveBg.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ protected function formatBody()
switch ($this->imageFormat) {
case 'image_file':
$index = 0;
$data = [];
foreach ($this->body as $key => $value) {
$data[$index]['name'] = $key;
$data[$index]['contents'] = $value;
Expand Down

0 comments on commit 42de26e

Please sign in to comment.