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 have media folder and saved csv file in it. How do I get file path from c# code so that I can read the file in the code (usercontrol)
I have used this but that not working
XPathNodeIterator
);
.Empty;
(nodes.MoveNext())
{
p = nodes.Current.Value;
;
XPathNodeIterator xfilep = umbraco.library.GetMedia(1136, true);XPathNodeIterator nodes = xfilep.Current.Select("/node/data[@alias='umbracoFile']");string p = string.Empty;while (nodes.MoveNext()){ p = nodes.Current.Value; break;}
It looks like you're doing this in .NET, so maybe you should ask this in the API forum.
(Sorry, I've never used the API, only XSLT, so I can't help)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to get path of Media file
I have media folder and saved csv file in it. How do I get file path from c# code so that I can read the file in the code (usercontrol)
I have used this but that not working
XPathNodeIterator
);
);
.Empty;
(nodes.MoveNext())
{
p = nodes.Current.Value;
;
XPathNodeIterator xfilep = umbraco.library.GetMedia(1136, true);
XPathNodeIterator nodes = xfilep.Current.Select("/node/data[@alias='umbracoFile']");
string p = string.Empty;
while (nodes.MoveNext())
{
p = nodes.Current.Value;
break;
}
It looks like you're doing this in .NET, so maybe you should ask this in the API forum.
(Sorry, I've never used the API, only XSLT, so I can't help)
is working on a reply...