upload.html (515B)
1 {{template "_header" .}} 2 <h2>Upload File</h2> 3 <form method="post" enctype="multipart/form-data"> 4 <input type="file" name="file"> 5 <button type="submit">Upload</button> 6 </form> 7 8 <h2>Upload from URL</h2> 9 <form method="post" action="/upload-url"> 10 File URL: <input type="url" name="fileurl" required style="width:400px"><br> 11 Custom filename: <input type="text" name="filename" placeholder="Optional: my-image.jpg" style="width:300px"><br> 12 <button type="submit">Add File</button> 13 </form> 14 15 {{template "_footer"}}