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
Hello,
I try to migrate my package umbraco 4 to umbraco 6.
Before i used this code :
MediaType mType = MediaType.MakeNew('userCourant', 'name'); mType.Alias = 'alias';mType.Thumbnail = "docWithImage.png"; mType.IconUrl = "Media File";mType.Save();
mType.Alias = 'alias';
mType.IconUrl = "Media File";
But now it doesn't work in umbraco 6.
Do you know how to do for create a new MediaType in my package ?
In code C# or in package.xml ?
In Umbraco 6 you can use the new media service to create media.
http://our.umbraco.org/documentation/Reference/Management-v6/Services/MediaService
Dave
Thank you.
It's OK.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Create MediaType in Umbraco 6
Hello,
I try to migrate my package umbraco 4 to umbraco 6.
Before i used this code :
But now it doesn't work in umbraco 6.
Do you know how to do for create a new MediaType in my package ?
In code C# or in package.xml ?
In Umbraco 6 you can use the new media service to create media.
http://our.umbraco.org/documentation/Reference/Management-v6/Services/MediaService
Dave
Thank you.
It's OK.
is working on a reply...