We have a v6.1.6 site which has been running for a while now. Just recently our clients have advised us that they can no longer upload png files - Umbraco returns Page Not Found when they try to save the new media type.
We are using the "Upload field" property editor for the image upload.
This is the error from the log file:
2018-03-01 12:39:06,359 [21] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 29] 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()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
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)
Any ideas what could be causing the problem?
I can load png files on my local version of the site but both the test and production sites error...
Can't upload png media files
We have a v6.1.6 site which has been running for a while now. Just recently our clients have advised us that they can no longer upload png files - Umbraco returns Page Not Found when they try to save the new media type.
We are using the "Upload field" property editor for the image upload.
This is the error from the log file:
Any ideas what could be causing the problem?
I can load png files on my local version of the site but both the test and production sites error...
That looks like the kind of error you get when you run out of disk space?!
Test server has 6GB free space, production server has 18GB
jpg files load correctly, but png and gif files error
Almost certainly not this but what's the setting in the \config\UmbracoSettings.config for disallowedUploadFiles
also
Hi Lesley
Just a random idea, but maybe worth a shot.
Are you able to open the file in an image editing program, save it as a different filename and try uploading the new file ?
Cheers
Nigel
is working on a reply...