Re: Help with image file upload

2011-09-27 Thread David
Thank you for the link but unfortunately it hasn't got me any further. I believe I have my model set up correctly: image_width = models.IntegerField(editable=False, null=True) image_height = models.IntegerField(editable=False, null=True) image = models.ImageField(upload_to='persons/%Y

Re: Help with image file upload

2011-09-27 Thread seb
On 27/09/2011 10:57, David wrote: Hello This is my view: @login_required @transaction.commit_on_success def update_person(request): try: person_id = int(request.POST['person_id']) except KeyError: raise Http404 person = Person.objects.select_related().get(pk=per