<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Sorry, T-bird fired before ready. As I was saying: Krumo shows:<br>
    <br>
    <span class="Apple-style-span" style="border-collapse: separate;
      color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style:
      normal; font-variant: normal; font-weight: normal; letter-spacing:
      normal; line-height: normal; orphans: 2; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; font-size: medium;"><span
        class="Apple-style-span" style="color: rgb(35, 70, 0);
        font-family: arial; font-size: 12px;">
        <ul class="krumo-node" style="margin: 0px 0px 0px 20px; padding:
          0px;">
          <li class="krumo-child" style="display: block;
            list-style-type: none; list-style-image: none; padding: 0px;
            margin: 0px; overflow: hidden;">
            <div class="krumo-element krumo-hover" style="cursor:
              default; line-height: 24px; display: block; clear: both;
              white-space: nowrap; border-top: 1px solid white;
              background-color: rgb(255, 138, 75); padding-left: 10px;"><a
                class="krumo-name" style="color: rgb(64, 64, 0);
                text-decoration: underline; font: bold 13px Arial;">filename</a><span
                class="Apple-converted-space">&nbsp;</span>(<em
                class="krumo-type">String,<span
                  class="Apple-converted-space">&nbsp;</span><strong
                  class="krumo-string-length" style="font-weight:
                  normal;">12 characters</strong><span
                  class="Apple-converted-space">&nbsp;</span></em>)<span
                class="Apple-converted-space">&nbsp;</span><strong
                class="krumo-string">P1000038.JPG</strong></div>
          </li>
          <li class="krumo-child" style="display: block;
            list-style-type: none; list-style-image: none; padding: 0px;
            margin: 0px; overflow: hidden;">
            <div class="krumo-element " style="cursor: default;
              line-height: 24px; display: block; clear: both;
              white-space: nowrap; border-top: 1px solid white;
              background-color: rgb(252, 235, 169); padding-left: 10px;"><a
                class="krumo-name" style="color: rgb(64, 64, 0); font:
                bold 13px Arial;">uri</a><span
                class="Apple-converted-space">&nbsp;</span>(<em
                class="krumo-type">String,<span
                  class="Apple-converted-space">&nbsp;</span><strong
                  class="krumo-string-length" style="font-weight:
                  normal;">33 characters</strong><span
                  class="Apple-converted-space">&nbsp;</span></em>)<span
                class="Apple-converted-space">&nbsp;</span><strong
                class="krumo-string">public://field/image/P1000038.JPG</strong></div>
          </li>
        </ul>
      </span></span><br>
    ... but I really need this to work when the node is being created OR
    updated. What hook should I be implementing instead?<br>
    <br>
    <br>
    <br>
    On 02/05/2011 09:24 PM, Steve Yelvington wrote:
    <blockquote cite="mid:4D4E065D.9020206@yelvington.com" type="cite">I
      have a content type with an image field. I want to pull some
      metadata from the image file when the node is created or updated.&nbsp;
      I thought this would be pretty straightforward, but I'm baffled by
      some things that are going on in D7.
      <br>
      <br>
      I thought I'd implement hook_node_presave(). Apparently the image
      file isn't properly known by $node at that point. Krumo shows
      field_image['und'][0] but none of its child elements have useful
      information. And I have no idea what 'und' is all about.
      <br>
      <br>
      I added node_load() to see if that would help. On an existing
      node, it makes a difference. Krumo shows:
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>