def file_upload_content_type_extra(request):
 params = {}
 for (file_name, uploadedfile) in request.FILES.items():
  params[file_name] = {k: force_text(v) for (k, v) in uploadedfile.content_type_extra.items()}
 return HttpResponse(json.dumps(params))

def file_upload_content_type_extra ( request ) : params = { } for ( file_name , uploadedfile ) in request . FILES . items ( ) : params [ file_name ] = { k : force_text ( v ) for ( k , v ) in uploadedfile . content_type_extra . items ( ) } return HttpResponse ( json . dumps ( params ) )
simple view to echo back extra content-type parameters .