diff options
| author | Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> | 2022-11-25 02:48:06 +0000 |
|---|---|---|
| committer | James Mills <james@mills.io> | 2022-11-25 02:48:06 +0000 |
| commit | 0a793f7d3fed115cdd242371490009db340deb00 (patch) | |
| tree | 38b38ca038bc468be165673c49a1ecb3937f77ed /templates/upload.html | |
| parent | 7a4ef5b6dfe804213d5cc1563f17deeb10e25455 (diff) | |
feat: Make upload path selectable (#39)
This works for me, but for a more public site, I think I'll also add a boolean attribute named "upload_allowed" and "writable" to Config.Library..
Something to allow you to configure which directories can receive new uploads, and which directories we consider writable for other purposes (like editing meta data in yml, creating new thumbnails, ...)
Co-authored-by: Heinrich Langos <gumbo2000@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/tube/pulls/39
Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Diffstat (limited to 'templates/upload.html')
| -rw-r--r-- | templates/upload.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/upload.html b/templates/upload.html index 54c2ccd..e188de6 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -9,6 +9,11 @@ <span>Click to browse or drop file here</span> </div> <div class="upload-details"> + <select id="target-library-path" name="target-library-path"> +{{range $index, $item :=.Config.Library}} + <option value="{{$item.Path}}">{{$item.Path}}</option> +{{end}} + </select> <input id="video-title" type="text" placeholder="Optional title" /> <textarea id="video-description" rows="2" placeholder="Optional description"></textarea> <div id="upload-file" class="upload-file"> |
