MCPcopy
hub / github.com/pallets/werkzeug / upload_file

Function upload_file

examples/upload.py:17–25  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

15
16
17def upload_file(req):
18 return Response(
19 """<h1>Upload File</h1>
20 <form action="" method="post" enctype="multipart/form-data">
21 <input type="file" name="uploaded_file">
22 <input type="submit" value="Upload">
23 </form>""",
24 mimetype="text/html",
25 )
26
27
28def application(environ, start_response):

Callers 1

applicationFunction · 0.85

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected