Hi,

I'm using Webform together with the FileField Sources module so I can attach large files to the webform.

This has worked perfectly fine until I upraded to the latest Drupal 7.38 core.

Here are my steps:

1. Upload large file to the webserver folder files\file-attach
2. Create the webform and "Attach" the file (I can see the server side file, select it, and click attach)

At this point I see "Please wait..." with the spinner next to it, quickly followed by a dialog with the following text:

An AJAX HTTP request terminated abnormally.
Debugging information follows:
Path:
/file/ajax/field_private_file/und/0/form-XXXXXXXX-XXXXX (the X's are a bunch of letters and numbers)
StatusText: n/a
ResponseText:
Error
The website encountered an unexpected error. Please try again later.

ReadyState: undefined

The file is moved from the files\file-attach folder to the files\private folder, but the webform is not updated so it still shows nothing attached.

Any idea what is going on and how I can fix this?

Comments

DanChadwick’s picture

Status: Active » Fixed

I'm afraid that I don't have any experience with this module. Webform uses a managed file form element for file components. If you know that it worked with the previous version of Drupal, I would start by carefully reading the core release notes for issues relating to ajax, file fields, directories, and form processing.

You could revert your version of Drupal to confirm that it once again works, and then check out each commit to see where it breaks.

You could install a debugger on the system and step through the ajax code.

You could check the server logs.

Can filefield sources work without javascript? If so, disable javascript to see what happens.

If you find out that Webform has a bug, please reopen with more details. If you learn what's happening, please post a follow-up comment so others who are having the same problem can learn from your knowledge.

Best of luck.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.