Level 4
July 26, 2023
Solved
How to enable webm format in a component?
- July 26, 2023
- 2 replies
- 2223 views
Hello everyone, I have the problem that I'm making a component that is a slider, you can upload files jpg, png, etc, but I would like to add the ability to upload videos in webm format, I searched documentation but only found that in .context in the mimeTypes property you must add:
video/webm
But it still doesn't work, what am I doing wrong?
This is the section where I want to add the webm format:
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
allowUpload="{Boolean}false"
class="cq-droptarget"
fieldDescription="Drag and Drop asset or Path Browser."
fieldLabel="Image Asset (Recommended size: 1440px x 450px)"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
mimeTypes="[image/gif,image/jpeg,image/png,image/tiff,image/svg+xml,video/webm]" <------
name="./image"
title="Upload Image Asset"/>

