FileName and Extension on MetadataSchema
Hi,
I have a requirement to display the filename and the extension on the metadata schema.
I was using these:
- jcr:content/cq:name - for the filename
- ./jcr:content/metadata/dam:Fileformat: For the extension
The problem is those values are not consistent for all assets.
For File Name, I noticed this property is filled only when we set the dc:title in the Metadata, after that it fills this field. The problem is, it is not filled for all assets. For some formats it is not filled, for example, for PNG it works for a .doc it doesn't.
The same happens for dam:FileFormat, for some file formats it is filled for other it is not.
Is this working as it was designed for?
In case it is not always filled, there would be a way to use the node name in the metadata schema as the asset node name is the file name?
Or any other alternative?
Any inputs are welcome.
Thanks