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
Hi I'm trying to get a Media Item by media path and I'm using this method
ApplicationContext.Services.MediaService.GetMediaByPath
The method is just returning null. Please can you help me? I really need to be able to get the item by path.
I'm using Umbraco version 7.4.3 on this project.
If you have some alternative code as a workaround, I would really appreciate it.
Thanks
Paul
I solved this by upgrading from umbraco v7.4.3 to v7.5.14
I'm experiencing this issue on version 7.6.5. Has the bug been reintroduced?
To be more specific I'm having this issue when calling ApplicationContext.Services.MediaService.GetMediaByPath in the ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"] .GatheringNodeData event
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GetMediaByPath returns null
Hi I'm trying to get a Media Item by media path and I'm using this method
The method is just returning null. Please can you help me? I really need to be able to get the item by path.
I'm using Umbraco version 7.4.3 on this project.
If you have some alternative code as a workaround, I would really appreciate it.
Thanks
Paul
I solved this by upgrading from umbraco v7.4.3 to v7.5.14
I'm experiencing this issue on version 7.6.5. Has the bug been reintroduced?
To be more specific I'm having this issue when calling ApplicationContext.Services.MediaService.GetMediaByPath in the ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"] .GatheringNodeData event
is working on a reply...