db_archive/targz_upload.php
2024-07-18 17:31:32 -07:00

35 lines
1.1 KiB
PHP

<?php
include 'config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Upload Database Dump</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>Upload Database Dump</h1>
</header>
<div class="upload-form">
<form action="upload_handler.php" method="post" enctype="multipart/form-data">
<label for="db_identifier">Database Identifier:</label>
<select name="db_identifier" id="db_identifier" required>
<?php
foreach ($fullNames as $identifier => $fullName) {
echo "<option value='$identifier'>$fullName</option>";
}
?>
</select>
<label for="file">Select archive file (.tar.gz):</label>
<input type="file" name="file" id="file" accept=".tar.gz" required>
<button type="submit">Upload</button>
</form>
</div>
</div>
</body>
</html>