Skip to content

Commit

Permalink
check filename
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardriegler authored Aug 27, 2021
1 parent 161c34d commit 37cfd72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MeshClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function setMultipart(RequestInterface $request)

foreach ($_FILES as $key => $value) {
// only add file part if a file was provided in the request
if (!empty($value['value'])) {
if (!empty($value['tmp_name'])) {
$tmp = array();
$tmp['name'] = $key;
$tmp['filename'] = $value['name'];
Expand Down

0 comments on commit 37cfd72

Please sign in to comment.