Hi there, i am experiencing problems with the use of ImageField (model) in M-R, revision 3007.
MySQL gets sql errors when saving. It seems to be wanting to save the uploaded image without quotes or something. This does not belong to mysql code i think since i want to save my file at MEDIA_ROOT... ProgrammingError at /material/variante/agn/update/3/ (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''content': '\\'\\xff\\xd8\\xff\\xe0\\\\0\\x10JFIF\\\\0\\x01\\x01\\x01\\\\0H\\\\0H\\\\0\\\\0\\xff\\xdb\\\\' at line 1") Request Method: POST Request URL: http://localhost:8000/material/variante/agn/update/3/ Exception Type: ProgrammingError Exception Value: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''content': '\\'\\xff\\xd8\\xff\\xe0\\\\0\\x10JFIF\\\\0\\x01\\x01\\x01\\\\0H\\\\0H\\\\0\\\\0\\xff\\xdb\\\\' at line 1") Exception Location: /usr/lib64/python2.4/site-packages/MySQLdb/connections.py in defaulterrorhandler, line 33 My template looks like: ... <form method="post" action="." enctype="multipart/form-data"> ... <img src="{{ object.get_bild_url }}"> {{ form.bild }} where 'bild' is my model's ImageField In my view i have the update branch coded like: ... if request.POST: new_data=request.POST.copy() new_data.update(request.FILES) .... manipulator.save() # see below ... The manipulator is: ... class artgruppeUpdate(Artgruppe.ChangeManipulator): def __init__(self,idRef,): Artgruppe.ChangeManipulator.__init__(self,idRef,follow=None) self.fields=[ ... forms.ImageUploadField(field_name="bild") ... ] self.original_object=Artgruppe.objects.get(id=idRef) ... (with 'Artgruppe' as model) With the admin views i can see and upload image files (bound_field thing). What am i possibly doing wrong?? Any help appreciated. You get a beer if you come to visit the RhineMain Area in Germany.. :-) Thanks, Frank --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---