Re: if 'photo' in request.FILES seems to be not working

2007-06-06 Thread Dushyant Sharma
i can not beleive this i had only to write enctype in capital ENCTYPE="multipart/form-data" i am sick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

if 'photo' in request.FILES seems to be not working

2007-06-06 Thread Dushyant Sharma
hi friends i am trying to upload an image file but i am getting errors. code is as follows def thing_add(request): if request.method == 'POST': if 'photo' in request.FILES: # it aint getting here just skip this section try: img = Image.open(Stri