On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Nope, looks like neither FileField nor ImageField work for me.
Ok, I got it figured out: Interestingly enough, create_object works just fine. update_object, as you've noted, doesn't. The reason is that in a Django 'request' object, any data concerning files is kept in request.FILES, while the rest of the POST data is kept in request.POST. In the create_object view, they do this: new_data = request.POST.copy() if model._meta.has_field_type(FileField): new_data.update(request.FILES) However, the update_object view does NOT do that. It simply does: new_data = request.POST.copy() and leaves it at that. That means there's no possible way for Django to get access to the file info. If I add the 'model._meta.has_fie...' check to update_object, then everything works fine. I don't know if this was on purpose, or if it was simply forgotten, but I suggest you walk over to the desk of whoever wrote that, and smack them on the head :) Jay P. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---