ca27a0b687
- Add RequestSizeLimitMiddleware that checks Content-Length header before request body is read: non-multipart requests capped at MAX_REQUEST_BODY_SIZE (default 1 MB), multipart uploads capped at MAX_UPLOAD_SIZE (default 1 GB). Returns HTTP 413 on violation. - Register middleware in app/main.py - Add max_request_body_size setting to app/config.py - Fix ui_upload in files.py to check Content-Length early and read in 64 KB chunks (bounded memory usage), removing the post-write os.path.getsize check - Document MAX_REQUEST_BODY_SIZE in .env.demo and ConfigurationGuide.md - Mark SECURITY_AUDIT.md item #4 as resolved - Add 9 tests in test_request_size_limit.py - Update test_upload_file_too_large to use patch.object instead of the now-unused os.path.getsize mock Closes #173 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
DocuElevate Documentation
Welcome to the DocuElevate documentation. This directory contains comprehensive guides to help you install, configure, and use DocuElevate effectively.
Available Documentation
- User Guide - How to use DocuElevate's features and interface
- API Documentation - Complete API reference for developers
- Deployment Guide - How to deploy DocuElevate in various environments
- Configuration - Overview of configuration options, including:
- Configuration Guide - Complete list of all available configuration parameters
- Google Drive Setup - How to set up Google Drive integration
- Dropbox Setup - How to set up Dropbox integration
- OneDrive Setup - How to set up Microsoft OneDrive/Graph integration
- Amazon S3 Setup - How to set up Amazon S3 integration
- Authentication Setup - How to set up user authentication
- Notifications Setup - How to set up system notifications
- Configuration Troubleshooting - Solutions to common configuration issues
- Troubleshooting - General troubleshooting and solutions to common issues
Additional Resources
- Contributing Guide - How to contribute to DocuElevate development
- License Information - Apache License 2.0 details
Support
If you need additional assistance beyond what's covered in these guides:
- Check the GitHub repository for updates and issues
- Contact the developer through the information provided on the About page



