Download views/upload.ejs from launch-calcium/Gallery-Copper-Typescript: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/spaces/launch-calcium/Gallery-Copper-Typescript/resolve/main/views/upload.ejs
- Command line
-
hf download hf://spaces/launch-calcium/Gallery-Copper-Typescript/views/upload.ejs
-
curl -L -o upload.ejs https://huggingface.co/spaces/launch-calcium/Gallery-Copper-Typescript/resolve/main/views/upload.ejs
1.28 kB
| <%- include('header') %> | |
| <div class="tableh1">Upload Picture</div> | |
| <div class="tableb"> | |
| <form action="/upload" method="POST" enctype="multipart/form-data"> | |
| <table class="form-table"> | |
| <tr> | |
| <td><label for="aid">Album:</label></td> | |
| <td> | |
| <select name="aid" id="aid" required> | |
| <% albums.forEach(alb => { %> | |
| <option value="<%= alb.aid %>"><%= alb.title %></option> | |
| <% }) %> | |
| </select> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td><label for="userfile">File:</label></td> | |
| <td><input type="file" name="userfile" id="userfile" accept="image/*" required></td> | |
| </tr> | |
| <tr> | |
| <td><label for="title">Title:</label></td> | |
| <td><input type="text" name="title" id="title"></td> | |
| </tr> | |
| <tr> | |
| <td><label for="caption">Caption / Description:</label></td> | |
| <td><textarea name="caption" id="caption" rows="3"></textarea></td> | |
| </tr> | |
| <tr> | |
| <td><label for="keywords">Keywords:</label></td> | |
| <td><input type="text" name="keywords" id="keywords"></td> | |
| </tr> | |
| <tr> | |
| <td></td> | |
| <td><button type="submit" class="btn">Upload File</button></td> | |
| </tr> | |
| </table> | |
| </form> | |
| </div> | |
| <%- include('footer') %> | |