          """
          Detects the uploaded file name. First searches a 'filename' url kwarg.
          Then tries to parse Content-Disposition header.
          """
          try:
              return parser_context['kwargs']['filename']
          except KeyError:
              pass
  
          try:
 
</s> remove         except KeyError:
            pass
 </s> add  </s> remove         try:
 </s> add         with contextlib.suppress(AttributeError, KeyError, ValueError): </s> remove             except FieldDoesNotExist:
                pass
 </s> add  </s> remove             except AttributeError:
                pass

 </s> add 
        with contextlib.suppress(KeyError):
          """
          Detects the uploaded file name. First searches a 'filename' url kwarg.
          Then tries to parse Content-Disposition header.
          """
        with contextlib.suppress(KeyError):
              return parser_context['kwargs']['filename']
          except KeyError:
              pass
  
          try:
keep keep keep keep replace keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/parsers.py