Closed (fixed)
Project:
Subform Element
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2008 at 15:06 UTC
Updated:
25 Jun 2008 at 08:52 UTC
When a form with upload file elements is embedded into another form and submitted, upload elements don't work - nothing is uploaded.
This happens because subform_element doesn't set $form['#attributes'] = array('enctype' => 'multipart/form-data'); automatically in case at least one upload element is found.
Is it possible to fix?
Thanks.
Comments
Comment #1
alanburke commented+1
I'm using this module, in conjunction with nodeprofile, and within that, filefield.
With the latest version of filefield, when you try to upload the file.
The ajax repsonse is an sql error.
Otherwise, the module is pretty neat.
Any advice on how to fix this would be appreciated.
Regards
Alan
Comment #2
fagothat's not true, file uploads work. Its documented that the enclosing form builder has to set
$form['#attributes'] = array('enctype' => 'multipart/form-data');
if one wants to use file uploads too.
The other one, is an incompatibility with the ajax stuff from filefield and imagefield. Yes, for this too work one needs to set data separation to false.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
thepanz commentedI got this issue ( Subform not working with Imagefield CCK), I used #data_serparation = FALSE, but I noticed that using Subform elements, passed FORM don't include [files] item, so Imagefield nor FileUploads works, any solution?
Regards
*edit* Resolved: I added a comment to documentation about it, maybe other users need to know about FileUpload without look into "Closed" issues. :) Read it here: http://drupal.org/node/133725#comment-849347
Comment #5
fagothanks, I've changed the module to have data separation off by default now.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.