OK, the trick is to set the attribute enctype="multipart/form-data" on
the form whenever your form contains a file upload item. Using the
third parameter you can detect if this is the case. This is typical of
using file-upload fields in web programming and independent of the
formlets. It's
Hey Colin,
The code looks OK to me. Are you sure you are setting the right method
for your form? It's the third component of the tuple returned by the
runFormState.
Thanks,
-chris
On 22 sep 2009, at 08:56, Colin Adams wrote:
I'm writing a form that involves picking a file to upload, and
I'm writing a form that involves picking a file to upload, and so uses
Text.XHtml.Strict.Formlets.file. The form displays OK, but when I
click the Browse button, and select a file from the dialog (no matter
what the file type), and then click on the Submit button, I get an
error:
"fval[2] is not a