tube/media/path.go
Heinrich 'Henrik' Langos 19a1141af3 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>
2023-01-16 11:33:12 +00:00

8 lines
168 B
Go

package media
// Path represents a media library path.
type Path struct {
Path string
Prefix string
PreserveUploadFilename bool
}