Javascript upload button issue, for WordPress

Solution:

It is not clear what are you doing here:

jQuery(document).ready(function($) {


//AJAX Upload
    $('.image_upload_button').each(function() {

Looks like you are starting upload immediately after document is loaded. Suppose instead of $(‘.image_upload_button’).each there should beĀ $('.image_upload_button').live('click', function(){
//upload code here
})