Ajax error while uploading or removing file through managed file I am getting following error while using managed file through my custom form.


  "An Ajax HTTP request terminated abnormally."


Also, I updated my jquery version to latest using jquery_update module. Still no any benefit.

Any idea on how to solve it?



EDIT: 

Code

  $form['path_image'] = array(
    '#title' =&gt; t('Image'),
    '#type' =&gt; 'managed_file',
    '#description' =&gt; t('The uploaded image will be displayed on the page unless it is marked as "removed".'),
    '#default_value' =&gt; $current_image,
    '#upload_location' =&gt; 'public://subpage_banner/',
  );
MaxRequestLen sometimes gets lowered as a result of server/module updates. Also, adding modules that add to the request length can also introduce this problem. This is why disabling modules can sometimes "fix" the problem.

See http://drupal.org/node/1015938#comment-7412202 for a solution that involves updating your vhost file, eg:

&lt;IfModule mod_fcgid.c&gt;
  # 50MB
  MaxRequestLen 52430000
&lt;/IfModule&gt;


Or try switching from FastCGI to mod_php or php-fpm (if you're using FastCGI).