          except (ValueError, TypeError):
              content_length = None
  
          # See if the handler will want to take care of the parsing.
          for handler in request.upload_handlers:
              result = handler.handle_raw_input(None,
                                                meta,
                                                content_length,
                                                None,
                                                encoding)
 
</s> remove 
        try:
            disposition = parse_header(meta['HTTP_CONTENT_DISPOSITION'])
            filename = disposition[1]['filename']
        except KeyError:
            filename = None
 </s> add         upload_handlers = request.upload_handlers
        filename = self.get_filename(stream, media_type, parser_context) </s> remove             for i, handler in enumerate(request.upload_handlers):
 </s> add             for i, handler in enumerate(upload_handlers): </s> remove         possible_sizes = [x.chunk_size for x in request.upload_handlers if x.chunk_size]
 </s> add         possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size] </s> remove         for i, handler in enumerate(request.upload_handlers):
 </s> add         for i, handler in enumerate(upload_handlers): </s> remove         for handler in request.upload_handlers:
 </s> add         for handler in upload_handlers:
        for handler in upload_handlers:
          except (ValueError, TypeError):
              content_length = None
  
          # See if the handler will want to take care of the parsing.
        for handler in upload_handlers:
              result = handler.handle_raw_input(None,
                                                meta,
                                                content_length,
                                                None,
                                                encoding)
keep keep keep keep replace keep keep keep keep keep
 Codebase improvements on FileUploadParser

* Added docstrings.
* Added `FileUploadParser.get_filename` to make it easier to override.
* Added url kwargs filename detection step.
* Updated tests corresponding to these changes. 
rest_framework/parsers.py