# stupa-pdf-api ## Recent Updates ### Dark Mode Loading Screen Fix - Fixed white background issue in loading screens when using dark mode - The LoadingSpinner component now properly respects the theme settings ### File Attachments Feature - Users can now upload up to 30 attachments per application - Maximum total size: 100MB - Files are stored securely in the database - Full CRUD operations with progress tracking - See [ATTACHMENT_FEATURE.md](ATTACHMENT_FEATURE.md) for details ### Comparison Offers Feature - Each cost position now requires 3 comparison offers - Alternative: Users can provide a justification if offers are not applicable - Visual indicators show completion status - Offers can be linked to uploaded attachments - See [COMPARISON_OFFERS_FEATURE.md](COMPARISON_OFFERS_FEATURE.md) for details ### Rate Limiting Configuration - API rate limiting is now disabled for localhost connections - Includes localhost (127.0.0.1) and Docker internal IPs (172.x.x.x) - Production deployments maintain rate limiting for external IPs ## Database Migrations Run these migrations to add the new features: ```bash # Add attachment tables mysql -u your_user -p your_database < src/migrations/add_attachments_tables.sql # Fix attachment data column if needed mysql -u your_user -p your_database < src/migrations/alter_attachments_data_column.sql # Add comparison offers tables mysql -u your_user -p your_database < src/migrations/add_comparison_offers_tables.sql ```