Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lesley 101 posts 343 karma points
    Mar 05, 2018 @ 21:26
    Lesley
    0

    Can't upload png files to Media

    We are using DAMP 2.5 with Umbraco 6.1.6 and have just recently started having issues uploading png files to the Media section.

    This is the error we are getting:

    System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
       at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
       at DigibizAdvancedMediaPicker.DAMP_ImagePreview.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    jpg files are loading correctly, and I can load png files on my localhost version of the website. However, both our test and production servers error.

  • Jeroen Breuer 4861 posts 12136 karma points MVP 3x admin c-trib
    Mar 06, 2018 @ 08:10
    Jeroen Breuer
    0

    Hello,

    Have you tried upgrading to DAMP 2.8? I know it has some fixes related to png files. You should be able to just install the DAMP 2.8 package and everything should work.

    Jeroen

  • Lesley 101 posts 343 karma points
    Mar 06, 2018 @ 19:49
    Lesley
    0

    I've upgraded to v2.8 as you suggested. We are still getting errors when uploading png files, however, it's a different error now:

    2018-03-07 08:46:13,255 [27] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 35] An unhandled exception occurred
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
       at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
       at Umbraco.Core.IO.UmbracoMediaFile.GenerateThumbnail(Image image, Int32 maxWidthHeight, Int32 fileWidth, Int32 fileHeight, String thumbnailFileName, Boolean useFixedDimensions)
       at Umbraco.Core.IO.UmbracoMediaFile.DoResize(Int32 width, Int32 height, Int32 maxWidthHeight, String fileNameAddition)
       at Umbraco.Core.IO.UmbracoMediaFile.Resize(Int32 maxWidthHeight, String fileNameAddition)
       at umbraco.cms.businesslogic.datatype.FileHandlerData.set_Value(Object value)
       at umbraco.editorControls.uploadField.Save()
       at umbraco.controls.ContentControl.SetNameAndDataTypeValues()
       at umbraco.controls.ContentControl.SaveClick(Object sender, ImageClickEventArgs e)
       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
Please Sign in or register to post replies

Write your reply to:

Draft