Best Practices
File Upload Best Practices
Learn how to optimize file uploads and handle documents effectively
Follow these guidelines to ensure optimal document processing results and efficient API usage.
Document Requirements
Supported Formats
- PDF (preferred for documents)
- PNG (for scanned documents)
- JPEG (for scanned documents)
File Specifications
- Resolution: 300 DPI minimum
- Max file size: 10MB per file
- Max batch size: 50 files
Implementation Guide
1. File Optimization
2. Batch Processing
For multiple files, use batch uploading to reduce API calls and improve performance.
3. Validation
Always validate files before uploading to prevent processing errors.
4. Error Handling
Implement retry logic to handle transient failures gracefully.
Troubleshooting Guide
File Size Issues
File Size Issues
If your file exceeds 10MB:
- Use the optimization code above for images
- Compress PDFs using Adobe Acrobat or similar tools
- Split large documents into smaller parts
- Maintain image quality while reducing file size
Upload Failures
Upload Failures
Common causes and solutions:
- Network issues: Check your internet connection
- Invalid format: Verify file type and size
- Rate limits: Implement exponential backoff
- Server errors: Retry with error handling
Processing Errors
Processing Errors
To ensure successful processing:
- Use high-quality, clear documents
- Maintain proper document orientation
- Check for file corruption
- Follow format specifications
Best Practices Summary
Document Quality
Use high resolution (300 DPI+)
Ensure proper lighting
Maintain clear text
Keep original aspect ratio
Upload Strategy
Batch similar documents
Validate before upload
Monitor progress
Handle errors gracefully
Error Prevention
Verify file formats
Check size limits
Implement retries
Log all failures
Performance
Use batch uploads
Optimize file size
Cache when possible
Monitor rate limits
Need help? Contact our support team:
- Email: support@invaro.ai
- Status: status.invaro.ai