On Tue, 2005-08-30 at 03:32 -0700, Dagur wrote:

> It took me a while but I figured out how to do this:
> 
>     if request.POST:
>         new_data = request.POST.copy()
>         new_data.update(request.FILES)  # This has to be added
> 
>         errors = manipulator.get_validation_errors(new_data)
>         if not errors:
>             new_message = manipulator.save(new_data)
>             return HttpResponseRedirect("%i/" % new_message.id)

Thanks for the response.  My problem actually turned out to be a hard-
to-spot typo in my template.  The "enctype" on the form was
"multipart/form_data" rather than "multipart/form-data".  Too much
typing python, I guess ;)

Thanks, all, for the response.  As I said, I knew it had to be something
stupid.

-- 
+----------------------------------------------------------------+
| Jason F. McBrayer                         [EMAIL PROTECTED]  |
|  "If you wish to make Pythocles wealthy, don't give him more   |
|   money; rather, reduce his desires."            -- Epicurus   |

Reply via email to