File Field Handler - Thoughts?

principessaDS - August 15, 2007 - 12:08
Project:Multiforms
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I was playing around with Multiforms, as it's almost perfect for something I'd like to implement on a site or two. I had a bit of a go at creating a file field handler, but a small problem pops up when trying to save the file as FormsAPI or the file module (not sure which - as I didn't pick things apart that thoroughly) rewrites the name of the field to 'files['multiforms'] and thus nothing gets passed to the expected $field_values array.

Any ideas I might be missing on passing the info found in $files array to Multiforms? While I certainly haven't picked things apart thoroughly, I feel like I'm missing something rather obvious here...

#1

mcantelon - October 16, 2007 - 18:45

Hi principessaDS... sorry for the belated response (I've been buried in work). I haven't had time to check into this, but one thing that might work, albeit kind of hack-ish, would be to reference the form files submission data using a global lookup (i.e. use "global " to access this data).

A file upload field would be fantastic.

Thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.