qshub / api /routers /upload.py

Commit History

11 days ago

  1. Enforce strict post-completion tool locking & server-side quota gates across all 3 tools

    dc1de51

  1. Fix 502 Gateway Timeout in Auto Classify. Removed synchronous PDF fallback which blocked HTTP. Added DB error checking to Upload. Truncated texts to 250 chars to prevent MySQL packet size limit errors.

    fe109c8
  2. Fix 502 Proxy Timeout by moving PDF image rendering to BackgroundTasks. This makes uploads 10x faster and prevents Cloudflare/Nginx from dropping connections.

    b314a54
  3. Fix OOM crashes on Render proxy by parsing PDFs using mmap from disk instead of massive byte duplication in memory

    e73778d
  4. Fix 502 upload root cause: single FormData POST + top-level try-except error handling + dual-table project ownership check

    66b6eeb
  5. Fix 502 upload crash: add proactive garbage collection (gc.collect) to keep RAM under 80MB on cloud containers (Render)

    c9f5391
  6. Fix 502 upload root cause: fix zero-byte file limit cap for free/trial users (PLANS[0]) + add exception handling to upload pipeline

    ccccd51
  7. Centralize all state_data writes into upsert_active_state() with auto-trim and size guards - prevents all future save failures

    cc1ec7a
  8. Replace dialect SQL queries with universal SELECT -> INSERT/UPDATE logic to prevent database engine syntax errors

    5df9c92
  9. Fix MySQL ON DUPLICATE KEY UPDATE syntax in active projects query

    d4c530e
  10. Ensure save_file is best-effort to prevent upload failures

    f32140b
  11. Fix upload state preservation so both structural and architectural files are retained

    43d0969
  12. Truncate text arrays in upload.py to prevent MySQL payload overflow and HTTP 502 error

    2778875
  13. Split drawing uploads sequentially to eliminate HTTP payload timeouts and 502 Bad Gateway

    3595e00

  1. fix: upload cap follows the plan limit, not a fixed 50 MB⁠

    basel00omar +1: Claude Opus 4.8
    1520edc
  2. security+reliability hardening pass⁠

    basel00omar +1: Claude Opus 4.8
    361e46e

  1. fix: enforce export and file upload limits on backend

    29d542c

  1. Implement Structural Accuracy Overhaul: Vector engine, Sanity checks, Dedicated extractors

    a84b04f
  2. perf: Massive speed boost for Step 1 (Upload) and Step 2 (Classification) by bypassing Numpy/PIL and writing native C++ compressed images directly to disk

    9394ed3
  3. fix: revert max_workers to 2 to prevent catastrophic OOM crash and infinite heartbeat loop on Free Tier

    4751dad
  4. perf: Optimize API speed by massively increasing multithreading concurrency for uploads and AI extraction

    d8c52b3
  5. feat: Add Garbage Collection for Single-Instance MVP architecture

    ef1f427
  6. Support multiple drawing file uploads for both structural and architectural

    e994ddf

  1. THE QS HUB v2.0 - Complete React + FastAPI Platform (clean deploy)

    1b4b6d2