40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
|
|
/>
|
|
<title>бабубэ</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Файл загрузки</h1>
|
|
<%= typeof msg !== 'undefined' ? msg : '' %>
|
|
|
|
<form action="/upload" method="POST" enctype="multipart/form-data">
|
|
<div class="file-field input-field">
|
|
<div class="btn grey">
|
|
<span>Файл</span>
|
|
<input name="myImage" type="file" /></div>
|
|
<div class="file-path-wrapper">
|
|
<input class="file-path validate" type="text" />
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn">Go</button>
|
|
</form>
|
|
<br />
|
|
<img src="<%= typeof file !== 'undefined' ? file : '' %>" class="responsive-img">
|
|
</div>
|
|
<script
|
|
src="https://code.jquery.com/jquery-3.4.0.min.js"
|
|
integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg="
|
|
crossorigin="anonymous"
|
|
></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
|
</body>
|
|
</html>
|