werkzeug.Request.files¶
-
Request.
files
¶ MultiDict
object containing all uploaded files. Each key infiles
is the name from the<input type="file" name="">
. Each value infiles
is a WerkzeugFileStorage
object.Note that
files
will only contain data if the request method was POST, PUT or PATCH and the<form>
that posted to the request hadenctype="multipart/form-data"
. It will be empty otherwise.See the
MultiDict
/FileStorage
documentation for more details about the used data structure.