a
This commit is contained in:
@@ -152,9 +152,13 @@ class FacialVerificationAPI {
|
||||
mkdir($uploadDir, 0755, true);
|
||||
}
|
||||
|
||||
/*
|
||||
$imageData = explode(',', $imageBase64)[1];
|
||||
$imageData = base64_decode($imageData);
|
||||
*/
|
||||
|
||||
$imageData = base64_decode($imageBase64);
|
||||
|
||||
$filename = $uploadDir . $assureId . '_' . time() . '.jpg';
|
||||
file_put_contents($filename, $imageData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user