feat: Make upload path selectable #39
Merged
prologic
merged 3 commits from gumbo2000/tube:add-upload-target-library-path-selector
into master
4 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'gumbo2000/tube:add-upload-target-library-path-selector'
Deleting a branch is permanent. It CANNOT be undone. Continue?
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, ...)
keys := make([]string, 0, len(a.Library.Paths))
for k := range a.Library.Paths {
keys = append(keys, k)
if _, exists := a.Library.Paths[targetLibraryPath]; exists {
Maybe let's invert this check and return early?
LGTM 👌
I think that'll be all from me for today. I'll be on holidays for the next two weeks.
Not sure if I will get around to do any coding.
see ya!
0a793f7d3f
into master 4 months agoReviewers
0a793f7d3f
.