fixing upload

This commit is contained in:
x
2026-01-24 01:28:14 +01:00
parent c822a4f4e7
commit 43da214f73
2 changed files with 108 additions and 23 deletions

View File

@@ -36,15 +36,16 @@
<div class="form-section">
<label>Video File <span class="required">*</span></label>
<div class="drop-zone" id="drop-zone">
<input type="file" id="file-input" name="file" accept="video/mp4,video/webm" required>
<div class="drop-zone-prompt">
<input type="file" id="file-input" name="file" accept="video/mp4,video/webm" style="display: none;">
<label for="file-input" class="drop-zone-prompt"
style="cursor: pointer; display: block; width: 100%; height: 100%;">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
<p>Drop your mp4 or webm here<br>or click to browse</p>
</div>
</label>
<div class="file-preview" id="file-preview" style="display: none;">
<span class="file-name" id="file-name"></span>
<span class="file-size" id="file-size"></span>
@@ -104,9 +105,7 @@
<style>
.upload-container {
max-width: 700px;
margin: 2rem auto;
padding: 2rem;
margin: 0px 25px 0px 25px
}
.upload-container h2 {