Copied to clipboard

Flag this post as spam?

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


  • Brian Powell 43 posts 198 karma points c-trib
    Feb 16, 2016 @ 18:42
    Brian Powell
    0

    Drag-and-Drop Non-Image Media in v7.4

    After upgrading from v7.3.7 to v7.4, we can no longer drag-and-drop non-image media files (DOCX, PDF, etc.). We get a message the only allowed types are image formats. Is there a way to fix this?

  • Sebastiaan Janssen 4876 posts 14511 karma points MVP admin hq
    Feb 17, 2016 @ 09:43
    Sebastiaan Janssen
    1

    This is currently a little awkward and hidden away but you can add the following to the <content /> section of umbracoSettings.config to make it work:

    <imaging>
      <!-- what file extension that should cause umbraco to create thumbnails -->
      <imageFileTypes>jpeg,jpg,gif,bmp,png,tiff,tif</imageFileTypes>
      <!-- what attributes that are allowed in the editor on an img tag -->
      <allowedAttributes>src,alt,border,class,style,align,id,name,onclick,usemap</allowedAttributes>
      <!-- automatically updates dimension, filesize and extension attributes on upload -->
      <autoFillImageProperties>
        <uploadField alias="umbracoFile">
          <widthFieldAlias>umbracoWidth</widthFieldAlias>
          <heightFieldAlias>umbracoHeight</heightFieldAlias> 
          <lengthFieldAlias>umbracoBytes</lengthFieldAlias>
          <extensionFieldAlias>umbracoExtension</extensionFieldAlias>
        </uploadField>
      </autoFillImageProperties>
    
    </imaging>
    

    We're working on making this a better but for now that should work. Note that in 7.4.0 it only works on thumbnail overview, not on the list overview:

    enter image description here

    We'll have that fixed soon : https://github.com/umbraco/Umbraco-CMS/pull/1133/

  • Steve Morgan 1052 posts 3261 karma points c-trib
    Mar 03, 2016 @ 17:44
    Steve Morgan
    0

    This just made me very confused! Thanks Brian for asking the question and Sebastiaan for posting the answer!

    Steve

  • Brian Powell 43 posts 198 karma points c-trib
    Mar 03, 2016 @ 17:45
    Brian Powell
    0

    In my case, I just upgraded to v7.4.1 and it fixed things without me having to edit the config files.

  • Steve Morgan 1052 posts 3261 karma points c-trib
    Mar 03, 2016 @ 17:48
    Steve Morgan
    0

    Hmmm.. I'm on 7.4.1. The fix has made it work in the Media section but not via the Content - clicking on Upload on a media picker property. Does that work for you?

  • Sebastiaan Janssen 4876 posts 14511 karma points MVP admin hq
    Mar 03, 2016 @ 17:49
    Sebastiaan Janssen
    0

    @Brian It's not yet fixed in the mediapicker.. will be for 7.4.2 :)

  • Brian Powell 43 posts 198 karma points c-trib
    Mar 03, 2016 @ 17:50
    Brian Powell
    0

    @Steve @Sebastiaan:

    It's just working on drag-and-drop in 7.4.1 for me, not in the media picker. Glad to hear the media picker will be fixed in 7.4.2 since some users have asked about that.

Please Sign in or register to post replies

Write your reply to:

Draft