From 19a1141af3f1aa52c706e402af734797d5d929ff Mon Sep 17 00:00:00 2001 From: Heinrich 'Henrik' Langos Date: Mon, 16 Jan 2023 11:33:12 +0000 Subject: preserve-video-filename (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-committed-by: Heinrich 'Henrik' Langos --- media/path.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'media') 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 } -- cgit v1.2.3