Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

enter image description here



  $form['path_image'] = array(
    '#title' => t('Image'),
    '#type' => 'managed_file',
    '#description' => t('The uploaded image will be displayed on the page unless it is marked as "removed".'),
    '#default_value' => $current_image,
    '#upload_location' => 'public://subpage_banner/',
share|improve this question
Post the code for your managed file field please. – littledynamo Mar 5 '13 at 11:24
Yes code has been posted. – Muneer Mar 5 '13 at 12:01
Code looks fine. Are you working on localhost or via a hosting provider? Is it possible that Fast CGI is being used? See this article montenasoft.com/en/blog/… – littledynamo Mar 5 '13 at 12:32
@littledynamo I am on localhost. Ubuntu Server 11.04 – Muneer Mar 5 '13 at 13:38

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:

<IfModule mod_fcgid.c>
  # 50MB
  MaxRequestLen 52430000

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

share|improve this answer

Anyone having lots of AJAX issues might want to try disabling the jquery_update module. It is because some modules and library scripts work with different versions of jQuery.

share|improve this answer

One reason for this error may be permissions. Please check that the upload AJAX menu item has the right access argument $items['file/ajax']['access arguments'] and no module else hooks and changes its default value.

share|improve this answer

It's a jquery_update issue. Check with lower version of jquery.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.