Tuesday, July 19, 2016

content type headers from multipart

I have a django endpoint that gets a multipart and I want look at the
content type headers in each part. When I look at
request.META['CONTENT_TYPE'] I get:

'multipart/form-data;
boundary="boundary_.oOo._OTEwMTc3NzM5ODMxMjQxNzkyMTI5OTY3NDQwOQ=="'

Googling this I found
https://github.com/django/django/blob/master/django/http/multipartparser.py
but I cannot find any docs on how to use it and I can't figure out how
to use it.

How can I get the content type headers from each part?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY5RRxT0PZZnCguPcRm8Tet51o8rJESV80N43sQKSOc5UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment