Copied to clipboard

Flag this post as spam?

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


  • Tommy Albinsson 121 posts 254 karma points
    Mar 19, 2013 @ 12:26
    Tommy Albinsson
    0

    umbracoFile is empty when inserting media via old mediaservice

    When inserting images via the old webservice (umbraco/webservices/api/mediaservice.asmx), umbracoFile is not set anymore.

    We updated from umbraco 4.11.5 -> 6.0.2. Here we have some example XML from the database after the media has been inserted. As you see, umbracoFile is empty.

    <Image 
    id="26951" 
    version="b8d3c6d2-ea7e-46b2-8cb7-f7c2b7cd4f56" 
    parentID="26944" 
    level="5" 
    writerID="0" 
    nodeType="1032" 
    template="0" 
    sortOrder="0" 
    createDate="2013-03-18T12:52:37" 
    updateDate="2013-03-18T12:59:37" 
    nodeName="1B72A682BB26409DA73150A6E1350247_1_0" urlName="1b72a682bb26409da73150a6e1350247_1_0" writerName="admin" nodeTypeAlias="Image" 
    path="-1,1148,1149,7290,26944,26951">
    <umbracoFile></umbracoFile>
    <umbracoWidth>34</umbracoWidth>
    <umbracoHeight>34</umbracoHeight>
    <umbracoBytes>5046</umbracoBytes>
    <umbracoExtension></umbracoExtension>
    </Image>

    Anyone who has experienced this after updating?

    //Tommy

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 19, 2013 @ 22:00
    Jan Skovgaard
    0

    Hi Tommy

    Hmm, that's a bit odd since the old API's should still be working as usual under the helmet even though some of the methods and classes etc. are now marked as being deprecated.

    What does your current code look like? Not sure but this could perhaps be a bug.

    Looking forward to hearing from you.

    /Jan

  • Tommy Albinsson 121 posts 254 karma points
    Mar 20, 2013 @ 11:38
    Tommy Albinsson
    0

    Hi Jan,

    I think Morten is on this, but have a look here.

    http://issues.umbraco.org/issue/U4-1937

    I know, it should still work. But after the upgrade umbracoFile property is allways empty. For the moment I hav pulled down the source of umbraco.webservices and modified the code to use the new Services.MediaService instead. Then it works like a charm, but still the old way must still work.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 20, 2013 @ 12:39
    Jeroen Breuer
    0

    In the v6 beta I also had a problem with creating media in the RTE. See this issue: http://issues.umbraco.org/issue/U4-1371

    Maybe they never fixed that problem for the old webservice.

    Jeroen

  • Tommy Albinsson 121 posts 254 karma points
    Mar 20, 2013 @ 13:07
    Tommy Albinsson
    0

    Yeah, I saw that issue, but since I am using the webservices for integration purposes and from a application outside of umbraco I did not found the answer in you issue Jeroen. Thanks though!

    Hopefully it is a easy fix :D

  • Tommy Albinsson 121 posts 254 karma points
    Mar 24, 2013 @ 19:23
    Tommy Albinsson
    101

    Issue is posted here http://issues.umbraco.org/issue/U4-1937, and the fix is posted http://nightly.umbraco.org/umbraco%206.0.3/UmbracoCms.6.0.3-build.16.zip

    MAN that it was I call service and support. Thanks umbraco hq and Morten you guys are awesome.

Please Sign in or register to post replies

Write your reply to:

Draft