Copied to clipboard

Flag this post as spam?

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


  • Lennard Fonteijn 17 posts 73 karma points MVP 5x
    Nov 23, 2015 @ 23:30
    Lennard Fonteijn
    0

    [Umbraco 6.2.4] umbracoFile not saved when uploading media

    A client of mine started reporting issues with uploading images. Before the 6.2.4 version was uploading images just fine. Now, when I upload one, it will save all properties to the database except the "umbracoFile", even though its set.

    Event when I "hijack" say the mediauploader.ashx and do:

    // Handle media Item
    var media = factory.HandleMedia(parentNodeId, postedMediaFile, AuthenticatedUser);
    media.SetProperty("umbracoFile", string.Format("/media/{0}/{1}", media.Id, postedMediaFile.FileName));
    media.Save();
    

    It will still not persist.

    Has anyone seen this before and know why this is happening all of a sudden?

    EDIT: The file is actually uploaded and created just fine.

  • Lennard Fonteijn 17 posts 73 karma points MVP 5x
    Nov 23, 2015 @ 23:43
    Lennard Fonteijn
    0

    Doh, I had an epiphany. Apparently someone modified the upload datatype to be a date-format...

Please Sign in or register to post replies

Write your reply to:

Draft