Add autoupload property after page load using plupload In a form I have added a field for images, set the file source to "Advanced upload widget (Plupload)" ( all other checkboxes are unchecked ) and I get the interface. I want to make it autoupload images after being drag and droped or selected via the add image link. The form is loaded in a custom created page using a personal made module. I tried to set 

$form['field_image_article1']['#autoupload']=TRUE


in myModule_form_alter and also called a myModule_after_build. None of the situations work and I can't figure out where or better sayd when should I set this value. Here is the code for the module : 

function add_new_article_menu() {
  $items['addAnnouncement'] = array(
  'title' =&gt; 'Adauga anunt',
  'page callback' =&gt; 'add_new_article_simple_page',
  'access callback' =&gt; TRUE,
  );
return $items;
}

function add_new_article_simple_page() {
form_load_include($form_state, 'inc', 'node', 'node.pages');
$node_form = new stdClass;
$node_form-&gt;type = 'announcement';
$node_form-&gt;language = LANGUAGE_NONE;
$form = drupal_get_form('announcement_node_form', $node_form);
return $form;
}
function add_new_article_form_alter(&amp;$form, &amp;$form_state, $form_id){
  if($form_id=='announcement_node_form'){
    $form['#after_build'][]='add_new_article_after_build';
    return $form;
  }
}
function add_new_article_after_build($form, &amp;$form_state) {
  $form['field_image_article1']['#autoupload']=TRUE;
  return $form;
}


Modules installed for plupload : FileField Sources Plupload,  File Field Sources , Plupload integration module

Any help is most appreciated.
Drupal's plupload module does not support '#autoupload'. Or at least that's what I experienced. I wrote my own behavior for this:

(function($) {

Drupal.plupload = Drupal.plupload || {};

/**
 * Attaches the Plupload behavior to each Plupload form element.
 */
Drupal.behaviors.mymodule_plupload = {
  attach: function (context, settings) {
    $(".plupload-element", context).once('mymodule-plupload-init', function () {
      var uploader = $(this).pluploadQueue();
      if(uploader !== undefined) {
        uploader.bind('FilesAdded', function(up, files) {
          $('.form-submit').prop( "disabled", true );
          uploader.start();
        });
        uploader.bind('UploadComplete', function() {
          if (uploader.files.length == (uploader.total.uploaded + uploader.total.failed)) {
            // If nothing is being uploaded right now:
            $('.form-submit').prop( "disabled", false );
          }
        });
      }
    });
  }
};

})(jQuery);


I based it on codes and hints from the Internet, but I can't recall exact sources. I'll be happy to fix that and add reference links if someone recognizes parts of this.