diff --git a/src/main/kotlin/uk/co/neviyn/booru/ConfigurationProperty.kt b/src/main/kotlin/uk/co/neviyn/booru/ConfigurationProperty.kt index 598e195..1dfb63b 100644 --- a/src/main/kotlin/uk/co/neviyn/booru/ConfigurationProperty.kt +++ b/src/main/kotlin/uk/co/neviyn/booru/ConfigurationProperty.kt @@ -22,6 +22,8 @@ class ImageConfigurationProperties { @NotEmpty var types: List = listOf("png", "jpg") + + fun typeListForFormFilter() : String = types.joinToString(",") { ".$it" } } class DirectoryValidator : ConstraintValidator { diff --git a/src/main/resources/templates/upload.html b/src/main/resources/templates/upload.html index bf6426d..ecc89f2 100644 --- a/src/main/resources/templates/upload.html +++ b/src/main/resources/templates/upload.html @@ -5,6 +5,21 @@ Upload - +
+
+
+

Upload a new image

+
+
+
+
+ + + + + +
+
+
\ No newline at end of file