mirror of
https://git.sr.ht/~coasteen/webui
synced 2025-11-04 11:37:34 +01:00
57 lines
No EOL
1.4 KiB
HTML
57 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>File Transfer</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
#file-tree {
|
|
margin-top: 20px;
|
|
}
|
|
ul {
|
|
list-style-type: none;
|
|
}
|
|
.preview-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
.preview-content {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 5px;
|
|
max-width: 90%;
|
|
max-height: 90%;
|
|
overflow: auto;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Upload Files</h1>
|
|
<form id="upload-form" action="/upload" method="post" enctype="multipart/form-data">
|
|
<input type="file" name="files" multiple required>
|
|
<button type="submit">Upload</button>
|
|
</form>
|
|
|
|
<h2>Directory Structure</h2>
|
|
<div id="file-tree">
|
|
<ul id="file-list"></ul>
|
|
</div>
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html> |