title: jQuery File Upload Does Not Display Preview
body: <p>The <a href="http://blueimp.github.com/jQuery-File-Upload/">jQuery File Upload</a> plugin does NOT currently display the selected file. Does anyone know how I can troubleshoot this issue? </p>
  
  <p>I've implemented 'custom' templates (see below); note I do not need to display previously uploaded material, hence there is no download template. </p>
  
  <p>I have already checked (via logging) that the <code>add</code> callback is being called and that the <code>uploadTemplate</code> function is being called and returning expected values -- for some reason those values are simply not being appended to the presentation table.</p>
  
  <pre><code>$('#fileupload').fileupload(
    acceptFileTypes: /(\.|\/)(gif)$/i
    uploadTemplateId: null
    downloadTemplateId: null
    uploadTemplate: (obj) -&gt;
      rows = $()
      $.each(obj.files, (idx, file) -&gt;
        temp = "&lt;tr class='template-upload fade'&gt;&lt;td class='preview'&gt;&lt;span class='fade'&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class='name'&gt;&lt;/td&gt;'&lt;td class='size'&gt;&lt;/td&gt;"
        if (file.error)
          temp += "&lt;td class='error' colspan='2'&gt;&lt;/td&gt;"
        else
          temp += "&lt;td&gt;&lt;div class='progress'&gt;&lt;div class='bar' style='width:0%;'&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='start'&gt;&lt;button&gt;Start&lt;/button&gt;&lt;/td&gt;"
        temp += "&lt;td class='cancel'&gt;&lt;button&gt;Cancel&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;"
        row = $(temp)
        row.find('.name').text(file.name)
        row.find('.size').text(obj.formatFileSize(file.size))
        rows = rows.add(row)
        )
      return rows
    downloadTemplate: -&gt;
      return $()
  )
  </code></pre>
  
  <p><strong>UPDATE 10/16/2012</strong>
  I added the following to the initialization of fileupload:</p>
  
  <pre><code>  process: [{action: 'load', fileTypes: /^image\/(gif|jpeg|png)$/, maxFileSize: 2000000}, {action: 'resize', maxWidth: 1920, maxHeight: 1200, minWidth: 800, minHeight: 600}, {action: 'save'}]
  </code></pre>
  
  <p>Which does initiate the attempt to load the image, but unfortunately, the attempt results in the following error. Does anyone know what is the cause and/or how to solve it?</p>
  
  <p><code>Uncaught TypeError: undefined (loadImage) is not a function jquery.fileupload-fp.js:87</code></p>