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,
Am I doing something wrong here. Uploading/saving a file via usercontrol, then trying to email the URL of that file.
Media file = new Media(mediaID);string url = file.getProperty("umbracoFile").Value.ToString();
That's giving me:
/media/CRE/10002/-1,10001,10002
Am I missing something? I was hoping for /media/CRE/10002/filename.pdf
Cheers,
Ah, this would be because the upload is failing! I'll get my coat.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
media.getProperty("umbracoFile").Value giving half folder, half node path
Hi,
Am I doing something wrong here. Uploading/saving a file via usercontrol, then trying to email the URL of that file.
That's giving me:
/media/CRE/10002/-1,10001,10002
Am I missing something? I was hoping for /media/CRE/10002/filename.pdf
Cheers,
Ah, this would be because the upload is failing! I'll get my coat.
is working on a reply...