Skip to content

Commit f171580

Browse files
committed
Correctly limit theme watermark filetypes
See also relevant backend changes: https://github.com/opencast/opencast/pull/6921/changes This patch corrects the translation string that tells the user what acceptable files types are. It also sets those file types as acceptable for the file upload.
1 parent 6bc56f2 commit f171580

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/configuration/partials/wizard/WatermarkPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const WatermarkPage = <T extends RequiredFormProps>({
7575
</header>
7676
<div className="obj-container padded">
7777
<FileUpload
78-
acceptableTypes="image/*"
78+
acceptableTypes="image/gif,image/png,image/jpg,image/jpeg,image/bmp"
7979
fileId="watermarkFile"
8080
fileName="watermarkFileName"
8181
formik={formik}

src/i18n/org/opencastproject/adminui/languages/lang-en_US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@
16721672
"BOTTOM_RIGHT": "Bottom right",
16731673
"UPLOAD": "Upload",
16741674
"POSITION": "Watermark position and preview",
1675-
"FILEUPLOAD_DESCRIPTION": "File should have an alpha channel (transparent background). Acceptable file types are: .PNG, .GIF, .SVG, .WEBP",
1675+
"FILEUPLOAD_DESCRIPTION": "File should have an alpha channel (transparent background). Acceptable file types are: gif, png, jp(e)g, or bmp",
16761676
"UPLOAD_LABEL": "Upload image",
16771677
"UPLOAD_BUTTON": "Upload"
16781678
},

0 commit comments

Comments
 (0)