@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | echo "<h1>CREATE</h1>"; |
| 30 | 30 | |
| 31 | - $certificate = ($_FILES["certificate"] ?? null); |
|
| 32 | - $password = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRIPPED); |
|
| 33 | - if (!empty($certificate) && !empty($password)) { |
|
| 31 | + $certificate = ($_FILES["certificate"] ?? null); |
|
| 32 | + $password = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRIPPED); |
|
| 33 | + if (!empty($certificate) && !empty($password)) { |
|
| 34 | 34 | $create = $certificates->create([ |
| 35 | 35 | "certificate" => $certificate['tmp_name'], |
| 36 | 36 | "password" => $password['password'], |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | } else { |
| 42 | 42 | var_dump($create->response()); |
| 43 | 43 | } |
| 44 | - } |
|
| 45 | - ?> |
|
| 44 | + } |
|
| 45 | + ?> |
|
| 46 | 46 | <form action="" method="post" enctype="multipart/form-data"> |
| 47 | 47 | <input type="file" name="certificate"/> |
| 48 | 48 | <input type="password" name="password"/> |