Align upload save path with the /uploads serving route #25

Open
opened 2026-06-06 19:58:14 +00:00 by tonym · 0 comments

Severity: medium
Category: bug
Location: app.py:36-38 vs 436

Problem

Imports save to DATA_DIR root but /uploads/ serves from /data/uploads, so imported files are unreachable; and the route exposes the whole dir without validating .

Suggested fix

Save to DATA_DIR/uploads/<secure_filename> and point send_from_directory at the same dir.

Filed by automated code review.

**Severity:** medium **Category:** bug **Location:** `app.py:36-38 vs 436` ### Problem Imports save to DATA_DIR root but /uploads/<path> serves from /data/uploads, so imported files are unreachable; and the route exposes the whole dir without validating <path>. ### Suggested fix Save to `DATA_DIR/uploads/<secure_filename>` and point send_from_directory at the same dir. _Filed by automated code review._
tonym added the
bug
severity:medium
labels 2026-06-06 19:58:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bonna61/Moon-Household-Budget#25
No description provided.