Copied to clipboard

Flag this post as spam?

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


  • Tobias Morf 80 posts 183 karma points
    Nov 13, 2012 @ 13:59
    Tobias Morf
    0

    Desktop Media Uploader with IPTC

    Is it possible to hook into the upload event of the desktop media uploader?
    Our goal is to get all IPTC metadata from uploaded images to fill for example, the image caption.

    --> http://en.wikipedia.org/wiki/IPTC_Information_Interchange_Model

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Nov 13, 2012 @ 14:08
    Matt Brailsford
    0

    You could extend the standard media factories / create your own media factories to handle certain file types. You can then get access to the file during upload and store whatever info you need against the media item.

    For example, you could extend UmbracoFileMediaFactory and overwride the HandleMedia method:

    http://dmu4umb.codeplex.com/SourceControl/changeset/view/0c5a4c0b9704#UmbracoFileMediaFactory.cs

    Storing the addition info you need

    PS. I've linked you to the DMU source, rather than the one in Umbraco as the umbraco source seems to be unavailable at the moment. The code should be the same, but might be in a difference namespace if you are using the version of the DMU that comes preinstalled.

Please Sign in or register to post replies

Write your reply to:

Draft