Hi,
I'm setting up a django webservice to accept data from an app on our
network. The client app seems to be sending base64encoded XML in a
multipart http request.
I think I can access the multipart data using request.FILES in my
view.
request.FILES is a multivaluedict with 2 keys and 2 values. The
values seem to be inMemoryUploadedFile's. str(request.FILES
['plsmeta.artist']) is:
<MultiValueDict: {u'plsmeta.artist': [<InMemoryUploadedFile:
plsmeta.artist (text/xml)>], u'plsmeta.title': [<InMemoryUploadedFile:
plsmeta.title (text/xml)>]}>
I want to open these files in my view, b64decode them and then save
the data to my model.
However, I can't seem to read the files. Has anyone got any code they
want to share for this kind of thing?
Cheers,
John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Python Ireland" 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.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---