When submitting the form - the file fields are not processed. they don't upload to the upload folder. I've checked the permissions and given the entire "files" folder full read/write to no avail.

Drupal does not return any errors nor is there anything in the log.

Any ideas?

It seems to be an old bug that keeps propping up... or is it just me having this problem?

Comments

meekamoo’s picture

OK I've figured out the problem.

Webform does not upload files when the file components are inside a fieldset.

Can anyone else replicate this?

meekamoo’s picture

Well I've gotten around it by moving the items into the fieldset using jquery.

Here is what I did.

I used the webform-form.tpl.php and I inserted the jquery at the end:

$(document).ready(function() { $('#DIV-OF-COMPONENT').prependTo("#DIV-OF-FIELDSET"); });

eg in my usage I had:

$(document).ready(function() { $('#webform-component-cv').prependTo("#webform-component-upload_files"); $('#webform-component-motivation').prependTo("#webform-component-upload_files"); });

Hope it helps anybody out there.

Only problem is that it adds it before the description. A minor amount of tweaking will be necessary to move the description around too.

yuit’s picture

I confirm the bug. I have just bumped into the exact same problem, with the 5.x-2.1.3 version of the module. The 'file' fields do not work as they should when they are inside a fieldset => nothing is uploaded when the form is submitted.

Server config: Windows 2000 Server ; Apache 2.0.63 ; PHP 5.2.6 ; MySQL 5.0.67 ; Drupal 5.10.

yuit’s picture

duplicated comment removed.

quicksketch’s picture

Status: Active » Closed (duplicate)