On Sun, Sep 20, 2009 at 2:49 PM, zweb <[email protected]> wrote:
>
> When I try to download a file through django in IE , I get
>
> [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     response =
> func(request, response), referer: http://www.....com
> [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]   File "/home/
> pmc/webapps/test/lib/python2.5/django/http/utils.py", line 77, in
> fix_IE_for_vary, referer: http://www......com/
> [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1]     if response
> ['Content-Type'].split(';')[0] not in safe_mime_types:, referer:
> http://www.....com/
> [Sun Sep 20 05:34:20 2009] [error] [client 127.0.0.1] AttributeError:
> 'list' object has no attribute 'split', referer: http://www.....com/
>
>
> I am doing,
>
>  for f in range(len(filepath)):
>        file_data = open('%s' % (filepath[f]), "rb").read()
>        response = HttpResponse(file_data,mimetype= content_type)
>        response['Content-Disposition'] = 'filename ='+ fname
>        return response
>
> where content_type is same as content Type of  uploaded file thorugh
> django

Two points:

1) Please don't cross post between mailing lists. Find the right forum
and use it.

2) Django-developers is not the right forum in this case.
Django-developers is for discussing the development of Django itself.
If you have a general "how do I" question, django-users is the right
place.

Yours,
Russ Magee %-)

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

Reply via email to