title: too much recursion when uploading image
body: <p>When i am trying to upload image via ajax in local, browser show the error <strong>too much recursion</strong>. so i couldn't test that in locally, but its works in production on heroku </p>
  
  <p></p>
  
  <pre><code>$('#fileupload_pers').fileupload({ 
      url: '/create_img_prs',
      add: function (e, data) {
                      $('#upload_pers').html('&lt;p class="upl label label- 
  success"&gt;Uploading....please wait&lt;/p&gt;');
                      data.submit();
                  },
      success: function (r) {
              //$('#upload').remove();
              $('#upload_pers').empty();
              $('#upload_pers').html('&lt;p class="upl label label-success"&gt;Successfully 
   Uploaded Image&lt;/p&gt;') ;
              $('#id_poster_pers').attr('value',r["id"]);
              $('#upload_pers').fadeOut(6000);
              }
    });
  </code></pre>