code: function (element) {
          // Create an iframe to submit through, using a semi-unique ID
          var frame_id = 'ajaxUploader-iframe-' + Math.round(new Date().getTime() / 1000)
          $('body').after('<iframe width="0" height="0" style="display:none;" name="' + frame_id + '" id="' + frame_id + '"/>');
          $('#' + frame_id).load(function () {
            handleResponse(this, element);
          });
          console.log("settings.action: " + settings.action);
          // Wrap it in a form
          element.wrap(function () {
            return '<form action="' + settings.action + '" method="POST" enctype="multipart/form-data" target="' + frame_id + '" />'
          })
            // Insert <input type='hidden'>'s for each param
              .before(function () {
                var key, html = '';
                for (key in settings.params) {
                  var paramVal = settings.params[key];
                  if (typeof paramVal === 'function') {
                    paramVal = paramVal();
                  }
                  html += '<input type="hidden" name="' + key + '" value="' + paramVal + '" />';
                }
                return html;
              });
        }
docs: /*
  Wraps element in a <form> tag, and inserts hidden inputs for each
  key:value pair in settings.params so they can be sent along with
  the upload. Then, creates an iframe that the whole thing is
  uploaded through.