title: uploadify Uncaught TypeError: Cannot read property 'toString' of undefined
body: <p>I am trying to figure out what is wrong with uploadify.</p>
  
  <p>Chrome gives me the following error when I try to use uploadify: Uncaught TypeError: Cannot read property 'toString' of undefined</p>
  
  <p>Here is my html:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;li id="avatarUploadContainer"&gt;
    &lt;div id="avatarUploaderDiv" style="position: relative; margin-top: 10px;"&gt;
      &lt;input id="avatarUploader" name="avatarUploader" type="file" buttonText="upload"&gt;
    &lt;/div&gt;
  &lt;/li&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here is my javascript to initialize uploadify:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    $('#country').change(function() {
      var countryID = $(this).val();
      getStateList(countryID);
    });
  
  
    /*
     * Include flash uploader for avatar uploading
     */
  
    $('#avatarUploader').click(function(){
      var uploaderPath = baseURL + '/actions.php?action=updateAccountInfo&amp;mode=avatarUpload&amp;umem_id=' + $('#umem_id').val() + '&amp;ms_id=' + $('#membership_id').val();
      var buttonText = $('#avatarUploader').attr('buttonText');
      var fileExt = '.jpg;';
      console.log(uploaderPath);
      console.log(buttonText);
      console.log(fileExt);
      $("#avatarUploader").uploadify({
        'formData': {
          'securityTimestamp': $('#securityTimestamp').val(),
          'securityToken': $('#securityToken').val()
        },
        'height': 14,
        'swf': baseURL + '/assets/uploadify/uploadify.swf',
        'uploader': uploaderPath,
        'multi': false,
        'buttonText': buttonText,
        'folder': baseURL + "/assets/avatars/",
        'fileTypeDesc': 'Images',
        'fileTypeExts': fileExt,
        'fileSizeLimit': $('#maxUploadSize').val(),
        'width': 146,
        'preventCaching': true,
  
  
        'onQueueComplete': function(queueData) {
  
          $('#editorAvatar').attr('src', baseURL + '/avatar.php?size=150&amp;memID=' + $('#mem_id').val());
          $('#memNavAvatar').attr('src', baseURL + '/avatar.php?size=100&amp;memID=' + $('#mem_id').val());
  
        }
      });
  
    });
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>My php doesn't even get executed as far as I have tested.</p>
  
  <p>Any help will be greatly appreciated</p>