Skip to main content

DebugFilesKeyError

Raised from request.files during debugging. The idea is that it can provide a better error message than just a generic KeyError/BadRequest.

Constructor

Signature

def DebugFilesKeyError(
request: [Request](../wrappers/request.md?sid=flask_wrappers_request),
key: str
) - > null

Parameters

NameTypeDescription
request[Request](../wrappers/request.md?sid=flask_wrappers_request)The request object from which the file was attempted to be accessed.
keystrThe key (file name) that was not found in the request.files dictionary.