add.html (1070B)
1 {{template "_header" .}} 2 <h2>Upload File(s)</h2> 3 <form method="post" enctype="multipart/form-data"> 4 <input type="file" name="file" multiple> 5 <br><button type="submit" class="text-button">Upload</button> 6 </form> 7 8 <h2>Upload from URL</h2> 9 <form method="post" action="/upload-url"> 10 <input type="url" name="fileurl" required placeholder="File URL"><input type="text" name="filename" placeholder="Optional custom filename"> 11 <br><button type="submit" class="text-button">Download File</button> 12 </form> 13 14 <h2>Upload using yt-dlp</h2> 15 <form action="/add-yt" method="POST"> 16 <input type="text" name="url" id="url" required placeholder="Video URL"> 17 <br><button type="submit" class="text-button">Download Video</button> 18 </form> 19 20 <h2>Add Local File</h2> 21 <form method="post" action="/add-local"> 22 <input type="text" name="filepath" required placeholder="/path/to/your/file.mp4"><label><input type="checkbox" name="delete_source"> Delete source file after upload</label> 23 <br><button type="submit" class="text-button">Add File</button> 24 </form> 25 26 {{template "_footer"}}