<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/27/2012 3:53 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:development-request@drupal.org">development-request@drupal.org</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:mailman.32279.1354002781.5917.development@drupal.org"
      type="cite">
      <pre wrap="">Send development mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:development@drupal.org">development@drupal.org</a>

To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://lists.drupal.org/mailman/listinfo/development">http://lists.drupal.org/mailman/listinfo/development</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:development-request@drupal.org">development-request@drupal.org</a>

You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:development-owner@drupal.org">development-owner@drupal.org</a>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of development digest..."


Today's Topics:

   1. File upload and convert (Chris Miller)
   2. Ubercart problem (Dayton Perkins)


----------------------------------------------------------------------

Message: 1
Date: Mon, 26 Nov 2012 16:32:39 -0800 (PST)
From: Chris Miller <a class="moz-txt-link-rfc2396E" href="mailto:cjm@tryx.org">&lt;cjm@tryx.org&gt;</a>
Subject: [development] File upload and convert
To: <a class="moz-txt-link-abbreviated" href="mailto:development@drupal.org">development@drupal.org</a>, <a class="moz-txt-link-abbreviated" href="mailto:support@drupal.org">support@drupal.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:286998828.15506.1353976359364.JavaMail.root@tryx.org">&lt;286998828.15506.1353976359364.JavaMail.root@tryx.org&gt;</a>
Content-Type: text/plain; charset="utf-8"

Hi Folks, 

I have a content type with TWO file fields, in which I will designate TWO PDFs. On upload completion I want to run something like: "exec(pdftk f1.pdf background f2.pdf output f1.pdf)". This will "brand" f1.pdf. 

I don't see any standard mechanism and so I'm not sure how to go about this. I have a general understanding, but that doesn't answer the question. I am sure I don't want to intercept all possible uploads; just the uploads from this specific content type. So, can I define a file upload hook which is scoped to this specific content type? I haven't seen anything that makes me believe I can. Can I create a custom file field to use any time I need to perform a conversion? Can my custom file field "extend" the existing file field, so I don't have to port improvements/bugfixes to my custom file field version? 

So many questions... (-: 

Thanks for the help, 

Chris. 

</pre>
    </blockquote>
    First look turns up this: Chris: though I have not done an
    implementation, seems likely...<br>
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_attach_submit/7">http://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_attach_submit/7</a><br>
<a class="moz-txt-link-freetext" href="http://api.drupal.org/api/drupal/modules!field!field.attach.inc/group/field_attach/7">http://api.drupal.org/api/drupal/modules!field!field.attach.inc/group/field_attach/7</a><br>
    Let us know how it went. I have considered doing the same.<br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <br>
      <br>
      <table border="0" cellpadding="5">
        <tbody>
          <tr>
            <td scope="col"><em>Kindest regards,</em></td>
            <th scope="col"><em><strong>Dayton Perkins</strong></em></th>
            <th scope="col"><img
                src="cid:part1.01030401.07050907@gmail.com" alt="Dayton
                Perkins"
                longdesc="http://goodnewsdesign.com/images/signature.gif"
                width="208" height="60"></th>
          </tr>
        </tbody>
      </table>
      <div style="font-family: &quot;Comic Sans MS&quot;; text-align:
        center; display: block; margin-bottom: 20px;">
        <p style="color: rgb(0, 153, 0); font-size: 1em; font-weight:
          bold; text-align: center;"> Good News Design </p>
        <p style="color: rgb(0, 0, 153); font-weight: bold;">
          Intelligent Web Programming for Business<br>
          Dayton Perkins: Recent American Expat in Hong Kong<br>
        </p>
        <table style="margin: auto;" border="0" cellpadding="5">
          <tbody>
            <tr>
              <td> <a href="mailto:dayton@goodnewsdesign.com"
                  title="send mail to dayton@goodnewsdesign.com"> <img
                    src="cid:part2.07080709.00060500@gmail.com"
                    alt="dayton@goodnewsdesign.com" border="0"> </a> </td>
              <td> <a href="mailto:dayton@goodnewsdesign.com"
                  title="send mail to dayton@goodnewsdesign.com">
                  dayton@goodnewsdesign.com</a> </td>
            </tr>
            <tr>
              <td> <img src="cid:part5.02000802.03060308@gmail.com"
                  alt="Phone Me"> </td>
              <td> U.S Phone (rings me in HK) 616-795-9039 </td>
            </tr>
          </tbody>
        </table>
        <p style="font-size: 0.85em; text-align: center;"> <a
            href="http://goodnewsdesign.com" style="text-decoration:
            none;" onmouseover="this.style.color='#006600'"
            onmouseout="this.style.color='#CCCCCC'" title="Visit">
            http://goodnewsdesign.com<br>
            <img moz-do-not-send="false" style="border: 0pt none;"
              src="cid:part6.00040608.00020205@gmail.com" alt="GND Logo"></a><a
            href="http://goodnewsdesign.com" style="text-decoration:
            none;" onmouseover="this.style.color='#006600'"
            onmouseout="this.style.color='#CCCCCC'" title="Visit"> </a>
        </p>
      </div>
      <br>
      <br>
    </div>
  </body>
</html>