On 6/22/07, Dirk van Oosterbosch, IR labs <[EMAIL PROTECTED]> wrote:
> This is what I did for the field validation http://dpaste.com/12715/
>
> the code to save the field data is in the view that uses this form.
> Nice! Would you maybe be willing to share your view code too?

Can't paste the code from the actual app (am under NDA) but the logic
in saving the image from form data is here:

http://dpaste.com/12731/

Oh, and make sure you add the following enctype attribute to your form:

<form enctype="multipart/form-data" action="/your/form/processing/url"
method="POST">
...
</form>
-- 
_nimrod_a_abing_

http://abing.gotdns.com/
http://www.preownedcar.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to