Middleware
Enhance your uploads with Tusflow's middleware capabilities
Available Middleware
Authentication
Secure your uploads with JWT tokens and API keys
Rate Limiting
Protect your API from abuse with intelligent rate limiting
File Validation
Validate files before processing with comprehensive checks
Rate Limit
Control request rates and prevent API abuse
Middleware Configuration
All middleware can be configured through your src/middleware/
folder. See the Configuration section for details.
Best Practices
- Enable authentication for all production deployments
- Configure appropriate rate limits based on your use case
- Implement file validation to prevent abuse
- Use Rate Limiting to prevent abuse
Edit on GitHub
Last updated on