feat: create upload directory automatically if it does not exist

This commit is contained in:
retoor 2024-11-26 05:31:23 +00:00
parent c17b7e2cbb
commit b4eaf4370f

View File

@ -287,7 +287,7 @@ def create_app(
max_file_size=max_file_size,
upload_folder_quota=upload_folder_quota,
)
pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True
pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True)
app.add_routes(
[
web.get("/", handle_index),