-
-
Save csharpforevermore/8176836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (fuImage.HasFile) | |
{ | |
PostedMediaFile postedMediaFile = new PostedMediaFile | |
{ | |
ContentLength = fuImage.PostedFile.ContentLength, | |
ContentType = fuImage.PostedFile.ContentType, | |
FileName = fuImage.PostedFile.FileName, | |
InputStream = fuImage.PostedFile.InputStream | |
}; | |
Media media = MediaFactory.GetMediaFactory(-1, postedMediaFile, new umbraco.BusinessLogic.User(0)).HandleMedia(-1, postedMediaFile, new umbraco.BusinessLogic.User(0), true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment