Hi! I'm trying to use http://www.djangosnippets.org/snippets/583/ and
getting an error 'str' object has no attribute 'name'.
It happens on this line:

logging.debug(request.FILES)
for file in request.FILES['file']:
    filename = file.name

Using firepy ( logging.debug) I see this dictionary:

<MultiValueDict: {u'file': [<TemporaryUploadedFile:
pr-83-15.01.2009.doc (application/msword)>, <TemporaryUploadedFile:
pidgin-2.5.8.exe (application/x-msdos-program)>]}>

So what is wrong ? And why 'str' ?
Maybe it's a silly question, but I'm a newbie :)

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

Reply via email to