title: Django download files errors "zip file is invalid"
body: <p>Here is my view code to download a file</p>
  
  <pre><code>def download_order(request,order_id):
        purchase=GigPurchase.objects.select_related().get(order_id=order_id)
        order=purchase.order  
        wrapper=FileWrapper(open(order.path,"rb")) 
        content=mimetypes.guess_type(order.path)[0]
        t=purchase.gig.title
        title=slugify(t)
        response=HttpResponse(wrapper,content_type=content)
        response['Content-Disposition']='attachment;filename=%s.zip'%(title)
        return response
  </code></pre>
  
  <p>I have a model that has a file field named "order". What am i doing wrong here because when I click on the link. I get the download file but when I try to open it I get "The compressed zip folder is invalid". Please help. Thanks</p>