44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
print_r($_FILES);
|
||
|
|
||
|
if(isset($_FILES["file"]))
|
||
|
{
|
||
|
TODO
|
||
|
}
|
||
|
|
||
|
?><!doctype html>
|
||
|
<html lang="en" data-bs-theme="auto">
|
||
|
<head>
|
||
|
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>Safe gallery</title>
|
||
|
|
||
|
<link href="/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||
|
<link href="/style.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body class="d-flex align-items-center py-4 bg-body-tertiary">
|
||
|
<main class="form-signin w-100 m-auto">
|
||
|
|
||
|
|
||
|
<div class="alert alert-success">
|
||
|
<strong>Note</strong> : Une information se cache dans la variable d'environnement <i>FLAG</i>.
|
||
|
</div>
|
||
|
|
||
|
<h2>Upload file</h2>
|
||
|
|
||
|
<form action="/" method="post" enctype="multipart/form-data">
|
||
|
<div>
|
||
|
<label for="formFile" class="form-label mt-4">Select image to upload</label>
|
||
|
<input class="form-control" type="file" id="formFile" name="file" required />
|
||
|
</div>
|
||
|
<div style="margin-top: 10px;">
|
||
|
<button type="submit" class="btn btn-primary">Perform upload</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
</main>
|
||
|
</body>
|
||
|
</html>
|