Copied to clipboard

Flag this post as spam?

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


  • Thomas 319 posts 606 karma points c-trib
    Jun 04, 2021 @ 13:38
    Thomas
    0

    Usync content Import Images

    Hey

    When I import Media with Usync Content, all my images a failes on import.. enter image description here

    The structur of the file looks correct..

    <?xml version="1.0" encoding="utf-8"?>
    <Media Key="a10edb7d-f326-4268-a03d-a647fd6755d8" Alias="0 Kl I Efteraarsskoven 1" Level="4">
      <Info>
        <Parent Key="c49890c3-3976-4a25-befe-8c88ea9530e3">Elever-lærere-pædagoger</Parent>
        <Path>/Subsites/Naturskolen/EleverLaererePaedagoger/KlIEfteraarsskoven1</Path>
        <Trashed>false</Trashed>
        <ContentType>Image</ContentType>
        <CreateDate>2021-01-15T10:26:10</CreateDate>
        <NodeName Default="0 Kl I Efteraarsskoven 1" />
        <SortOrder>0</SortOrder>
        <FileHash>107147422001931971392157811556135141526216</FileHash>
      </Info>
      <Properties>
        <altText>
          <Value><![CDATA[]]>t</Value>
        </altText>
        <caption>
          <Value><![CDATA[]]>t</Value>
        </caption>
        <consent>
          <Value><![CDATA[0]]>0</Value>
        </consent>
        <consentId>
          <Value><![CDATA[]]>t</Value>
        </consentId>
        <consentText>
          <Value><![CDATA[hulemand]]>t</Value>
        </consentText>
        <isDecorative>
          <Value><![CDATA[0]]>0</Value>
        </isDecorative>
        <mediaInfoLabel>
          <Value><![CDATA[]]>t</Value>
        </mediaInfoLabel>
        <umbracoFile>
          <Value><![CDATA[{"src":"/media/ppnb3ijg/0-kl-i-efteraarsskoven-1.jpg","crops":[{"alias":"BlockImageWide","width":380,"height":120},{"alias":"BlockImageSquare","width":380,"height":380},{"alias":"SliderBlockImage","width":1170,"height":410},{"alias":"HeaderImage","width":700,"height":300},{"alias":"ListPageItemImage","width":249,"height":249},{"alias":"SelfserviceSectionImage","width":280,"height":120},{"alias":"ContentPageImage","width":935,"height":630}]}]]></Value>
        </umbracoFile>
      </Properties>
    </Media>
    

    I got the files from another solution and I just want to import the media reffrence...

    Also Umbraco 8..

    Is there something i'm missing ?

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Jun 06, 2021 @ 11:04
    Kevin Jump
    0

    Hi Thomas,

    I am not sure how but it looks like the XML file is slightly off.

    the actualy value appear to be outside of the CDATA tags.

    e.g

    <altText>
         <Value><![CDATA[]]>t</Value>
    </altText>
    

    isn't valid it should look like

    <altText>
         <Value><![CDATA[t]]></Value>
    </altText>
    

    with the 't' value inside the CDATA tag - i am guessing someone has added extra values to the files after they have been generated, and they are just a bit off.

    Kevin

Please Sign in or register to post replies

Write your reply to:

Draft