Compare commits
2 Commits
254cb6004b
...
983d4d668f
Author | SHA1 | Date | |
---|---|---|---|
983d4d668f | |||
2f6ecfe06d |
@ -287,11 +287,12 @@ def create_app(
|
|||||||
max_file_size=max_file_size,
|
max_file_size=max_file_size,
|
||||||
upload_folder_quota=upload_folder_quota,
|
upload_folder_quota=upload_folder_quota,
|
||||||
)
|
)
|
||||||
|
pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True)
|
||||||
app.add_routes(
|
app.add_routes(
|
||||||
[
|
[
|
||||||
web.get("/", handle_index),
|
web.get("/", handle_index),
|
||||||
web.post("/upload", handle_upload),
|
web.post("/upload", handle_upload),
|
||||||
web.static("/uploads", "uploads"),
|
web.static("/uploads", upload_path),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
return app
|
return app
|
||||||
|
Loading…
Reference in New Issue
Block a user