Skip to content

Commit

Permalink
Merge pull request #30 from WebFiori/dev
Browse files Browse the repository at this point in the history
fix: Single File Upload
  • Loading branch information
usernane authored Jan 6, 2025
2 parents d15a2ba + 4126efc commit 1a8245a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/file/FileUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public function upload(bool $replaceIfExist = false) : array {
}
} else {
//single file upload
$fileInfoArr = $this->getFileArr($fileOrFiles, $replaceIfExist);
$fileInfoArr = $this->getFileArr($fileOrFiles, $replaceIfExist, null);
$this->files[] = $fileInfoArr;
}
}
Expand Down

0 comments on commit 1a8245a

Please sign in to comment.