Exception Details: System.FormatException: String "[{"name":"Test Attachment"" is not a valid udi.
Source Error:
Line 93:
Line 94: @{
Line 95: var typedMultiMediaPicker = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("attachments");
Line 96: foreach (var item in typedMultiMediaPicker)
Line 97: {
The code I am using is
@{
var typedMultiMediaPicker = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("attachments");
foreach (var item in typedMultiMediaPicker)
{
<a href="@item.Url">Test</a>
}
}
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 94: @{
Line 95: var typedMultiMediaPicker = Model.Content.GetPropertyValue<IEnumerable<IPublishedContent>>("JobAttach");
Line 96: foreach (var item in typedMultiMediaPicker)
Line 97: {
Line 98: <a href="@item.Url">Test</a>
Media Picker issue
Hi,
I am working on a media picker with multiple files.
I am using the example from the Umbraco site.
https://our.umbraco.com/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Media-Picker/index-v7
But i am getting this error
The code I am using is
Any obvious issues?
Hi Michael
Can you go to the Umbraco backoffice and republish the node you are trying to load on the page?
Looks like some data is corrupted in "attachments" field
Thanks, Alex
Hi new node added and still get this
is working on a reply...