Automatic upload folder creation if not exists.
All checks were successful
RUpload build / Build (push) Successful in 1m2s

This commit is contained in:
retoor 2024-11-26 06:31:23 +01:00
parent 2f6ecfe06d
commit 983d4d668f

View File

@ -287,7 +287,7 @@ 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 pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True)
app.add_routes( app.add_routes(
[ [
web.get("/", handle_index), web.get("/", handle_index),