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
I am trying to extrac a specific image
from the media gallery - but donĀ“t get the full url I guess it is simple..
'Any hints appreciated
@{
var media = Model.MediaById(1337);
<img src="@media.umbracoFile"/>
}
- returns : <img src=" media 3816 bruger1.png">
@media.Url
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor: img url
I am trying to extrac a specific image
from the media gallery - but donĀ“t get the full url I guess it is simple..
'Any hints appreciated
@{
var media = Model.MediaById(1337);
<img src="@media.umbracoFile"/>
}
- returns : <img src=" media 3816 bruger1.png">
@media.Url
is working on a reply...