How do I when I’m creating an image also add the metadata values to it (in the media module it says properties and all the different metadata values are there but empty).
Litium version: 6.1
How do I when I’m creating an image also add the metadata values to it (in the media module it says properties and all the different metadata values are there but empty).
Litium version: 6.1
From version 6 all media files have the Field Framework so metadata is no longer avaliable, instead you should store information connected to files in fields.
Example from docs article, replace baseproduct with file:
var baseproduct = new BaseProduct("My_baseproduct", fieldTemplateSystemId);
baseproduct.Fields.AddOrUpdateValue("MyField", "value");
_baseProductService.Create(baseproduct);
var myFieldValue = baseproduct.Fields.GetValue<string>("MyField");