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 create media folder
Media contentFolder = Media.MakeNew( doc.Id.ToString(), MediaType.GetByAlias("folder"),author , 1072);
How I can Add image in existing folder by Umbraco API?
http://our.umbraco.org/forum/developers/api-questions/3477-Creating-Media-Programatically
(from: https://www.google.com/search?q=create%20media%20programmatically%20umbraco)
Media m =Media.MakeNew(imageName,MediaType.GetByAlias("image"),User.GetUser(0),1072);
the last parameter is the ParentId for the new media item...
@MikeThat's not the complete solution. Creating an item in umbraco is one thing, but storing an image with thumbnail and setting all the properties is the second thing, which is described in the link I've provided.
misread, thought was just a request to how to have a media item nested in an exisintg medianode folder...
I have images. I only want to upload it in existing folder by Umbraco API. Can I do such think?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Add image in existing folder by Umbraco API
I create media folder
Media contentFolder = Media.MakeNew( doc.Id.ToString(), MediaType.GetByAlias("folder"),author , 1072);
How I can Add image in existing folder by Umbraco API?
http://our.umbraco.org/forum/developers/api-questions/3477-Creating-Media-Programatically
(from: https://www.google.com/search?q=create%20media%20programmatically%20umbraco)
the last parameter is the ParentId for the new media item...
@Mike
That's not the complete solution. Creating an item in umbraco is one thing, but storing an image with thumbnail and setting all the properties is the second thing, which is described in the link I've provided.
misread, thought was just a request to how to have a media item nested in an exisintg medianode folder...
I have images. I only want to upload it in existing folder by Umbraco API. Can I do such think?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.