-
Notifications
You must be signed in to change notification settings - Fork 15
Advanced Filtering
Last Updated: October 23, 2025 | Version: 1.1
This guide covers the comprehensive filtering system in R2 Bucket Manager, including basic text filtering and advanced filters for extensions, file size, and upload dates.
R2 Bucket Manager provides a powerful multi-layered filtering system that helps you quickly locate files in large buckets. You can combine multiple filter types simultaneously for precise results.
- Basic Text Filter - Search by filename or folder name
- Type Filter - Show all items, files only, or folders only
- Extension Filter - Filter by file extensions with quick presets
- Size Filter - Filter by file size ranges
- Date Filter - Filter by upload date ranges
Located at the top of the file list, the text search filters files and folders by name.
How to Use:
- Type in the search box above the file list
- Results update in real-time as you type
- Click the ✕ button to clear the search
- View the match counter: "23 of 156"
Features:
- Case-insensitive search
- Searches filename/folder name only (not full paths)
- Real-time updates
- Works in both grid and list views
Example:
- Searching "report" will match:
monthly-report.pdfQ4-Report.xlsxsales_report_2024.csv
Filter to show only files, only folders, or both.
Options:
- All - Shows both files and folders (default)
- Files Only - Shows only files
- Folders Only - Shows only folders
Filter files by their file extension using quick presets or custom selection.
One-click filters for common file type groups:
| Button | Extensions Included |
|---|---|
| 📷 Images |
.jpg, .jpeg, .png, .gif, .webp, .avif, .heic, .svg, .bmp
|
| 📄 Documents |
.pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .txt, .csv
|
| 🎬 Videos |
.mp4, .mov, .webm
|
| 💻 Code |
.js, .ts, .jsx, .tsx, .py, .java, .cpp, .cs, .go, .rs, .html, .css, .json, .xml, .yaml, .yml, .sql
|
| 📦 Archives |
.zip, .rar, .7z, .tar, .gz
|
How to Use Quick Filters:
- Click the Extensions button
- Click a quick filter button (e.g., "📷 Images")
- All matching extensions in your bucket are selected
- Click the same button again to deselect
Select specific extensions from files available in your current folder.
How to Use:
- Click the Extensions button
- Scroll through "Available Extensions" section
- Check/uncheck individual extensions
- Each extension shows count:
.pdf (23) - Click Clear to reset selection
Features:
- Multi-select: Choose multiple extensions simultaneously
- Extension counts: See how many files of each type
- Sorted by frequency: Most common extensions appear first
- Only shows extensions that exist in current folder
Example Use Cases:
- Select only
.pdfand.docxto view documents - Filter all image formats except
.svg - Find all code files (
.js,.ts,.jsx,.tsx)
Filter files by their size with preset ranges or custom min/max values.
| Range | Description |
|---|---|
| All Sizes | No size filtering (default) |
| < 1 MB | Files smaller than 1 megabyte |
| 1 - 10 MB | Files between 1 and 10 megabytes |
| 10 - 50 MB | Files between 10 and 50 megabytes |
| 50 - 100 MB | Files between 50 and 100 megabytes |
| > 100 MB | Files larger than 100 megabytes |
How to Use Presets:
- Click the Size button
- Select a preset range (radio buttons)
- Filter applies immediately
- Active range shows in button: "Size: 1-10 MB"
Set your own minimum and maximum file sizes.
How to Use:
- Click the Size button
- Scroll to "Custom Range" section
- Enter Min (MB) (optional)
- Enter Max (MB) (optional, leave empty for no limit)
- Click Apply
Examples:
- Min:
5, Max:15→ Files between 5-15 MB - Min:
50, Max: empty → Files larger than 50 MB - Min:
0, Max:0.5→ Files smaller than 500 KB
Tips:
- Use decimals for KB precision:
0.5= 500 KB - Leave Max empty for "greater than" filters
- Set Min to 0 for "less than" filters
Filter files by their upload date with preset ranges or custom date selection.
| Range | Description |
|---|---|
| All Dates | No date filtering (default) |
| Today | Files uploaded today |
| Last 7 Days | Files uploaded in the past week |
| Last 30 Days | Files uploaded in the past month |
| Last 90 Days | Files uploaded in the past quarter |
| This Year | Files uploaded this calendar year |
How to Use Presets:
- Click the Date button
- Select a preset range (radio buttons)
- Filter applies immediately
- Active range shows in button: "Date: Last 7 Days"
Select specific start and end dates.
How to Use:
- Click the Date button
- Scroll to "Custom Range" section
- Select From date (optional)
- Select To date (optional)
- Click Apply
Date Pickers:
- Native HTML5 date inputs
- Cannot select future dates
- End date must be after start date
- Leave either field empty for open-ended ranges
Examples:
- From:
2024-10-01, To:2024-10-31→ October 2024 - From:
2024-01-01, To: empty → All files from 2024 onward - From: empty, To:
2024-09-30→ All files before October 2024
Visual badges show all active filters at the top of the file list.
Features:
- Icon-coded badges - Each filter type has a unique icon
- Removable - Click the ✕ on any badge to clear that filter
- Condensed display - Long extension lists show "3 more"
- Clear All button - Remove all filters with one click
Badge Examples:
🔍 Search: "report" ✕
📄 Extensions: .pdf, .xlsx ✕
📏 Size: 1-10 MB ✕
📅 Date: Last 7 Days ✕
[Clear All Filters]
When filters are active, a statistics bar shows aggregate information about filtered results.
Displayed Stats:
- Showing: Number of filtered items vs total (e.g., "23 of 156 items")
- Total Size: Combined size of filtered files (e.g., "45.2 MB")
- Date Range: Upload date span of filtered files (e.g., "Jan 15 - Oct 23, 2025")
Example:
📊 Showing 23 of 156 items | Total Size: 45.2 MB | Date Range: Jan 15 - Oct 23, 2025
Multiple ways to clear filters:
- Individual Clear - Click ✕ on filter badge
- Filter Dropdown Clear - Click Clear link in dropdown header
- Clear All Filters - Click red button to reset all filters
- Text Search Clear - Click ✕ in search input
The real power comes from combining multiple filter types for precise results.
Goal: Find video files larger than 100MB uploaded in the last 30 days
Steps:
- Click Extensions → Click "🎬 Videos" quick filter
- Click Size → Select "> 100 MB"
- Click Date → Select "Last 30 Days"
- View filtered results with statistics
Result: All video files over 100MB uploaded in the past month
Goal: Find Word and PDF documents under 5MB from Q1 2024
Steps:
- Click Extensions → Check
.pdfand.docx - Click Size → Custom: Min
0, Max5 - Click Date → Custom: From
2024-01-01, To2024-03-31 - Review filtered list
Result: PDF and Word documents under 5MB from January-March 2024
Goal: Find files larger than 50MB uploaded before 2024
Steps:
- Click Size → Select "> 50 MB"
- Click Date → Custom: From empty, To
2023-12-31 - Select files from results
- Use bulk delete if needed
Result: All large files from 2023 or earlier, ready for cleanup
- Start Broad, Narrow Down - Begin with one filter, then add more
- Use Quick Filters - Faster than checking individual extensions
- Combine Strategically - Use most selective filter first
- Clear Unused Filters - Reset filters when switching tasks
- Save Filter Combinations - Remember common filter patterns for regular tasks
- Check Statistics - Review filtered totals before bulk operations
- Use Type Filter - Combine with advanced filters for files-only view
- Verify Results - Always check filtered count before bulk operations
Weekly Review:
Date: Last 7 Days → Review recent uploads
Storage Cleanup:
Size: > 50 MB + Date: > 90 Days → Find old large files
Project Files:
Extensions: Code (quick filter) → Find all code files
Media Management:
Extensions: Images or Videos + Size: Custom range → Organize media
All filter components support full keyboard navigation:
- Tab - Move between filters
- Enter/Space - Open dropdown, select option
- Arrow Keys - Navigate dropdown options
- Escape - Close dropdown
Fully accessible for screen readers with ARIA labels and live regions.
Filters are fully responsive on mobile devices:
- Vertical Layout - Dropdowns stack on small screens
- Touch-Friendly - Large tap targets for buttons and checkboxes
- Swipeable Badges - Easy removal on touch devices
- Optimized Menus - Full-screen dropdowns on mobile
Issue: Filters don't seem to apply Solution:
- Ensure you've selected values in dropdown (presets or checkboxes)
- Check if filter badges appear below filter bar
- Try refreshing the bucket view
Issue: Filter returns zero results Solution:
- Filters may be too restrictive (no files match all criteria)
- Clear individual filters to see which one eliminates results
- Try broader ranges (size, date) or fewer extensions
- Use filter statistics to verify file counts
Issue: Extension count doesn't match expectations Solution:
- Count shows files in current folder only (not recursive)
- Hidden/system files may not be counted
- Navigate to root to see bucket-wide extensions
Issue: Custom date range seems incorrect Solution:
- Dates are based on upload time, not file modification time
- Time zone differences may affect "today" cutoff
- Ensure end date is after start date
Filters are purely client-side for performance:
- No API calls - All filtering happens in browser
- Works Offline - Filters function without network
- Fast Performance - Instant results even with 1000+ files
- Memory Efficient - Uses React memoization for optimization
- File Operations - File management features
- Bucket Management - Bucket-level operations
- Quick Start Guide - Getting started
- Troubleshooting - Common issues and solutions
Planned improvements for filtering system:
- Saved Filter Presets - Save and recall common filter combinations
- Advanced Search Operators - Boolean logic (AND, OR, NOT)
- Regex Support - Pattern matching in text search
- Folder Recursive Filters - Include subfolders in extension detection
- Filter History - Recently used filters quick access
See the Roadmap for more planned features.
Need help? See the FAQ or ask in GitHub Discussions.
- Home - Documentation overview
- Quick Start Guide - Get up and running in minutes
- Installation & Setup - Complete deployment guide
- Configuration Reference - Environment variables and settings
- Upgrade Guide - Database schema migrations
- Bucket Management - Create, rename, delete buckets
- Object Lifecycles - Automate expiration and IA transitions ⭐ NEW
- Local Uploads - Faster uploads via nearby edge storage ⭐ NEW
- Job History - Track bulk operations with audit trail ⭐ NEW
- Webhooks - Configure HTTP notifications for events ⭐ NEW
- AI Search - Semantic search with Cloudflare AI
- S3 Import - Migrate from AWS S3 to R2 ⭐ NEW
- Cross-Bucket Search - Search across all buckets with filters
- File Operations - Upload, download, move, copy, delete files
- Folder Management - Organize files hierarchically
- Signed URLs & Sharing - Generate secure shareable links
- Advanced Filtering - Filter by extension, size, and date
- Development Guide - Local setup and development workflow
- API Reference - Complete endpoint documentation
- Architecture Overview - Technical stack and design
- Authentication & Security - Zero Trust implementation
- JWT Validation - JWT token validation and verification
- Troubleshooting - Common issues and solutions
- FAQ - Frequently asked questions
- Roadmap - Planned features and enhancements