class MultipartResource(object):

    def deserialize(self, request, data, format=None):
        if not format:
            format = request.META.get('CONTENT_TYPE', 'application/json')
if format == 'application/x-www-form-urlencoded':
    return request.POST
if format.startswith('multipart/form-data'):
    multipart_data = request.POST.copy()
multipart_data.update(request.FILES)
return multipart_data
return super(MultipartResource, self).deserialize(request, data, format)

def put_detail(self, request, **kwargs):
    if request.META.get('CONTENT_TYPE', '').startswith('multipart/form-data'
        ) and not hasattr(request, '_body'):
        request._body = ''
return super(MultipartResource, self).put_detail(request, **kwargs)

def patch_detail(self, request, **kwargs):
    if request.META.get('CONTENT_TYPE', '').startswith('multipart/form-data'
        ) and not hasattr(request, '_body'):
        request._body = ''
return super(MultipartResource, self).patch_detail(request, **kwargs)
Multipart/Form-Data POST, PUT, PATCH in Django-Tastypie