Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
import uuid
import magic # python-magic for MIME sniffing

load_dotenv()
# Support UTF-8 BOM in .env files commonly saved by Windows tools.
load_dotenv(encoding="utf-8-sig")

# ─── LOGGING ─────────────────────────────────────────────────────────────────

Expand Down Expand Up @@ -62,6 +63,7 @@
"application/xml",
"text/xml",
"text/x-log",
"unknown", # windows/libmagic fallback; extension checks still enforce allowed file types
"application/octet-stream", # fallback for .log/.evtx on some systems
}
MAX_FILE_SIZE_BYTES = 50 * 1024 * 1024 # 50 MB
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fastapi
uvicorn
python-multipart
python-magic
python-magic-bin
slowapi
python-jose[cryptography]
bcrypt
Expand Down