Align upload save path with the /uploads serving route #25
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Category: bug
Location:
app.py:36-38 vs 436Problem
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.