summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorHeinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>2023-01-16 11:33:12 +0000
committerJames Mills <james@mills.io>2023-01-16 11:33:12 +0000
commit19a1141af3f1aa52c706e402af734797d5d929ff (patch)
tree6e50140550f92fe320b4d389d93d1b75b132fd24 /media
parent9952cc533ac093a9b8acf964642e42ae8962f768 (diff)
preserve-video-filename (#49)
This should fix issue #40 I have not made the `allowed_characters` configurable yet nor the `replacement_character`. Mostly because I couldn't decide if I should define those "globally" on a server basis, or on the library nodes. Feel free to modify, extend, rip apart. 😁 Reviewed-on: https://git.mills.io/prologic/tube/pulls/49 Co-authored-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io> Co-committed-by: Heinrich 'Henrik' Langos <gumbo2000@noreply@mills.io>
Diffstat (limited to 'media')
-rw-r--r--media/path.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/path.go b/media/path.go
index 1248ed5..bc40b37 100644
--- a/media/path.go
+++ b/media/path.go
@@ -2,6 +2,7 @@ package media
// Path represents a media library path.
type Path struct {
- Path string
- Prefix string
+ Path string
+ Prefix string
+ PreserveUploadFilename bool
}