Jakob Khan has written a blog post about this:
It's not exactly what we are looking for.
We want the editor to be able to check if the FileUpload shall be used or not in the "Form Creator Page"
So we need the component to be initialized in the xform and the submit also to be handled from there.
Would be great if a fileUpload component will be implemented in CMS 7
How did you solve it Daniel?
Take a look at this blog post
We need to make it possible for the users to enable file attachment in XForms.
Does anybody have a good suggestion or a best practice how to do this?
The basic plan is to let the user add a "component" on the form with a certain name and this will add a file attechment on the form.