parsers.py
2.95 KB
-
Accept raw image data as Content-type: image/* · 257dcc54
MA-1416 Created a TypedFileUploadParser that validates the mimetype and then takes the content and puts it on request.FILES['file']. Subclasses the existing FileUploadParser. Use namedtuple in IMAGE_TYPES as per style guide: https://github.com/edx/edx-platform/wiki/Python-Guidelines#classes-vs-dictionaries
J. Cliff Dyer committed