Copied to clipboard

Flag this post as spam?

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


  • Robert 1 post 71 karma points
    Dec 08, 2018 @ 05:03
    Robert
    0

    Image upload problems

    I "was" having issue uploading images, I would get the ERROR Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute - Could not acquire actionExecutedContext.Response.Content System.NullReferenceException: Object reference not set to an instance of an object.

    when uploading a JPEG file. but others of the same size would upload fine.

    Doing some digging I tried the standard recommended fixes.
    File permissions, Adjusting Web Config maxRequestLength , targetFramework and other fixes. same error every time.

    Digging in more I figured that it's the function. objectContent = actionExecutedContext.Response.Content as ObjectContent;

    Throwing it, as its not the media type it think it is. (though it was / is a jpg file ??) Bad file -> http://iwasmakingajoke.com/buggyfile/badfile.jpg Found a web site I could convert it to Good file -> http://iwasmakingajoke.com/buggyfile/goodfile.jpg

    When saved and you try to save in the media folder it will throw an error, even though it's a jpeg, the issue it isn't not a "normal" jpeg, but the binary file starts with RIFF and I think it's Google's new image format.

    Is there a way to get these files to be accepted by Umbraco so I can upload and use them without having to convert them ?

  • 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.

Please Sign in or register to post replies