Hi,
I have a question, we have a code first item where we can selecte multiple images:
[File(Name = "Image", BaseDirectory = "/Images", Extension = "jpg,png,svg", MaxFilesToAdd = "6", Description = "", AllowFrontendUpload = false)] public string SlideImages { get; set; }
But I cant figure out how to get a list of the filenames in the ViewModel template. I tried several options, but I keep getting null reference errors (yes I selected some images ;) ).
The most logical code would be:
Model.Item.GetFile("SlideImages")
But if I do something like a count Model.Item.GetFiles("Images").count(), I get the null reference error. How do I get a list of images in my template?
Greetings Harald