Fixed some bugs
This commit is contained in:
@@ -36,7 +36,7 @@ if (isset($_POST['signature'])) {
|
||||
$filePath = $rootPath . '/uploads/signatures/' . $fileName;
|
||||
|
||||
// Ensure the directory exists
|
||||
if (!is_dir($rootPath . '/uploads/signatures')) {
|
||||
if (!file_exists($rootPath . '/uploads/signatures')) {
|
||||
mkdir($rootPath . '/uploads/signatures', 0777, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user