Posted by drm1114 on December 3, 2010 at 9:09am
3 followers
Jump to:
| Project: | FileField |
| Version: | 6.x-3.7 |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | name array_parents filefield_save_upload |
Issue Summary
This is most easily reproduced installing flexifield, creating a content type containing only a file (say "file") and a type containing a flexifield referencing the first type (say "fileset"). Whenever saving a form, the subsequent files or images are overwritten by the first one.
This is because the rendered html field (<input type="file" ...>) does not respect the #array_parents in its naming. The supplied patch fixes this.
| Attachment | Size |
|---|---|
| filefield.patch | 938 bytes |
Comments
#1
Thanks this looks good. I'll give it a shot when I get a chance.
#2
Tested this out and it works great. Demoting to minor since Flexifield is about the only way this situation could occur.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.