Copied to clipboard

Flag this post as spam?

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


  • Carl 29 posts 51 karma points
    Mar 13, 2015 @ 05:25
    Carl
    0

    Media Items (custom) with multiple Uploads

    Hi,

    Great product by the way (especially uSync!), just wanted to feedback a issue which has affected me with uSync.ContentEdition.

    We specifically have a custom Media Item called Art Work, which have more than one file upload attached to it. We have additional ones for thumbnails that can be cropped differently (which is why we have to have them as seperate files as we cant just resize the main one down).

    Here is an example of how the .media file looks:

    <?xml version="1.0" encoding="utf-8"?>

    <ArtWork guid="911bd841-6020-4598-9aa5-3fc704e52441" id="1064" nodeName="Little blue (40cm x 40cm)" isDoc="" updated="2015-03-13T11:38:51.297Z" parentGUID="e86b4a26-628c-43c5-9590-75bc6530b771" mediaTypeAlias="ArtWork" path="-1,1061,1064">

      <umbracoWidth><![CDATA[425]]></umbracoWidth>

      <umbracoHeight><![CDATA[425]]></umbracoHeight>

      <umbracoBytes><![CDATA[264437]]></umbracoBytes>

      <umbracoExtension><![CDATA[jpg]]></umbracoExtension>

      <price><![CDATA[$1,600 NZD]]></price>

      <thumbnail><![CDATA[/media/1007/little_blue_40x40cms_-1600_thumb.jpg]]></thumbnail>

      <largeThumbnail></largeThumbnail>

      <umbracoFile><![CDATA[/media/1008/little_blue_40x40cms_-1600.jpg]]></umbracoFile>

    </ArtWork>

    Anyway so what I have noticed is that the extra uploads files don't get picked up and placed in the uSync/Files folder, in the above case no "/media/1007/little_blue_40x40cms_-1600_thumb.jpg" got placed in the Files to transfer across.

    If you need anymore information let me know, or if this is open source and you'd like me to contribute and try to resolve this then let me know as well :) would be happy to contribute to the project.

    Thanks, Carl

     

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Mar 13, 2015 @ 13:13
    Kevin Jump
    0

    Hi

    at the moment content edition only looks for the umbracoFile property and assumes any media item files are going into that,

    the FileHelper.ImportMediaFile function does all the work [ https://github.com/KevinJump/jumoo.usync/blob/master/jumoo.usync.content/helpers/FileHelper.cs#L258 ] - but it would need some logic rebuilding i think to be able to extract and then remember what files went where before putting them back in - all doable i think, just not something i have time to fix just now...

    I've add it to the issue list - so its there for me to get around to https://github.com/KevinJump/jumoo.usync/issues/6

Please Sign in or register to post replies

Write your reply to:

Draft