Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
In V8.4 the following code gives the error
[ArgumentNullException: Value cannot be null. Parameter name: mediaItem]
for the line
var image = item.Value
TeamMemberPhoto is a imagecropper and not null.
I cannot find the solution. Published the page and document type several times. Can somebody help me please.
@foreach (var item in selection)
@if (item.Value("TeamMemberPhoto") != null)
var image = item.Value<IPublishedContent>("TeamMemberPhoto");
Did you get it to work ?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted