i have a issue about response a image object.
open the image in browser ,the property of the image miss the file
size and summary
http://jieblog.appspot.com/file/agdqaWVibG9nchELEgpGaWxlVXBsb2FkGLoXDA
def filedown(request,the_key):
the_file = models.FileUpload.get(the_key)
response = HttpResponse(the_file.content)
response['Content-Type'] = the_file.content_type
response['Content-Disposition'] = 'attachment; filename=
%s'%the_file.filename
return response
is therer something wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---