Bulk File Operations
Efficiently manage large numbers of files using bulk actions, batch processing, and automation.
Bulk Operations Overview
Section titled “Bulk Operations Overview”Available bulk actions:
• Bulk upload• Bulk delete• Bulk tag• Bulk product mapping• Bulk settings update• Bulk download generation• Bulk exportBenefits:
✓ Save time✓ Reduce errors✓ Consistent application✓ Scale efficiently✓ Audit trailSelecting Files in Bulk
Section titled “Selecting Files in Bulk”Selection Methods
Section titled “Selection Methods”Select multiple files:
Individual selection:
Files list → ☐ Check boxes• Click individual checkboxes• Shift+click for range• Ctrl/Cmd+click for non-consecutiveSelect all:
☑ Select all files (current page)☑ Select all {count} files (all pages)
Example:Showing 50 of 247 files☐ Select all 50 on this page☑ Select all 247 files
Action applies to: All 247 filesFilter and select:
1. Apply filters: • File type: PDF • Tags: course • Unmapped: Yes2. Results: 45 files3. Select all filtered4. Apply bulk actionBulk Upload
Section titled “Bulk Upload”Multi-File Upload
Section titled “Multi-File Upload”Upload many files at once:
Drag and drop:
1. Files → Upload Files2. Drag entire folder to upload area3. All files queued4. Upload starts automatically5. Monitor progressFile browser:
1. Click upload area2. File browser opens3. Ctrl/Cmd+A to select all4. or Shift+click for range5. [Open] to start uploadUpload Queue Management
Section titled “Upload Queue Management”Manage upload queue:
Queue controls:
Files uploading: 15Files queued: 32Failed: 2
Actions:[Pause All][Resume All][Cancel All][Retry Failed]Individual file control:
Each file in queue:• Filename• Size• Progress• [Pause] [Cancel] buttons
Failed files:• Error message• [Retry] buttonBulk Delete
Section titled “Bulk Delete”Deleting Multiple Files
Section titled “Deleting Multiple Files”Remove files in bulk:
Delete selected:
1. Select files (checkbox)2. Bulk Actions → Delete3. Confirmation dialog: "Delete 45 selected files?" ⚠️ This action cannot be undone ☐ Also remove from product mappings [Cancel] [Delete Files]4. Deletion in progress5. Success: "45 files deleted"Safe Deletion
Section titled “Safe Deletion”Prevent accidental deletion:
Warnings:
⚠️ Files mapped to products:"15 of 45 selected files are currently mapped to products.Deleting will break download links for customers."
Options:☐ Keep files, remove mappings only● Delete files and remove mappings☐ Cancel deletion
Recommendation: Download backup firstDeletion Filters
Section titled “Deletion Filters”Selective deletion:
Delete by criteria:
Files → Bulk Actions → Delete by Filter
Criteria:☑ Uploaded before: 2023-01-01☑ Not mapped to any product☑ File size > 1 GB☐ Tags contain: "old"
Matches: 23 filesPreview: [Show matching files]
[Delete Matching Files]Bulk Tagging
Section titled “Bulk Tagging”Adding Tags in Bulk
Section titled “Adding Tags in Bulk”Tag multiple files:
Add tags:
1. Select files (45 selected)2. Bulk Actions → Add Tags3. Enter tags: course, premium, 20244. Apply to: ● Replace existing tags ○ Add to existing tags ○ Remove these tags5. [Apply Tags]6. Result: 45 files taggedTag templates:
Save common tag sets:• Course Files: course, chapter, pdf• Bonus Content: bonus, extra, premium• Ebooks: ebook, pdf, guide
Quick apply: Select template → Apply to filesTag Management
Section titled “Tag Management”Organize tags:
Bulk tag operations:
Find and replace tags:
Files → Bulk Actions → Manage Tags
Find tag: "chapter"Replace with: "module"Applies to: All files with "chapter" tag
Files affected: 45[Replace Tag]Merge tags:
Merge duplicate tags:"Chapter" + "chapter" + "CHAPTER" → "chapter"
Standardize: Convert all to lowercaseBulk Product Mapping
Section titled “Bulk Product Mapping”Mapping Multiple Files
Section titled “Mapping Multiple Files”Map files to products in bulk:
Auto-map by SKU:
Files → Bulk Actions → Auto-Map to Products
Match by:● Product SKU in filename○ Product title similarity○ Tags
Pattern: {SKU}_{filename}.extExample: COURSE-001_chapter-1.pdf → Product SKU: COURSE-001
Confidence: 80% minimumPreview matches: [Show]
Matched: 42 of 45 filesUnmatched: 3 files
[Apply Mapping]Manual bulk mapping:
1. Select files (15 selected)2. Bulk Actions → Map to Product3. Search product: "Complete Course Bundle"4. Select product5. Map all selected to this product6. [Apply Mapping]
Result: 15 files now mapped to "Complete Course Bundle"Unmapping Files
Section titled “Unmapping Files”Remove product mappings:
Bulk unmap:
1. Select mapped files2. Bulk Actions → Remove Product Mapping3. Confirm: "Remove product mapping from 23 files?" ⚠️ Files will become unmapped Download links will stop working4. [Remove Mappings]
Result: 23 files unmappedBulk Settings Update
Section titled “Bulk Settings Update”Update File Settings
Section titled “Update File Settings”Change settings for multiple files:
Expiry settings:
Files → Select multiple → Bulk Actions → Update Settings
Expiry:● Update expiry to: 90 days○ Add to current expiry: +30 days○ Don't change
Download limit:● Update limit to: 10 downloads○ Don't change
Applies to: 45 selected files[Update Settings]Custom settings:
Other settings to bulk update:☑ File visibility (Public/Private)☑ CDN enabled/disabled☑ Download notification☑ Track downloads☑ Allowed referrersBulk Export
Section titled “Bulk Export”Exporting File Data
Section titled “Exporting File Data”Export file information:
CSV export:
Files → Bulk Actions → Export
Format: CSVInclude:☑ Filename☑ File size☑ Upload date☑ Product mappings☑ Tags☑ Download count☑ Expiry settings☑ Download limits☐ File URLs (security concern)
Filters: Apply current filtersSelected only: ☑ Yes (45 files)
[Export CSV]Export result:
filename,size_bytes,upload_date,products,tags,downloads,expiry_days,download_limitChapter-1.pdf,2500000,2024-01-15,"Complete Course",course;chapter1,145,60,5Chapter-2.pdf,2800000,2024-01-15,"Complete Course",course;chapter2,132,60,5Bonus.zip,15000000,2024-01-16,"Complete Course",course;bonus,89,90,10JSON export:
[ { "id": "file_abc123", "filename": "Chapter-1.pdf", "size_bytes": 2500000, "upload_date": "2024-01-15", "products": ["prod_123"], "tags": ["course", "chapter1"], "downloads": 145, "expiry_days": 60, "download_limit": 5, "url": "https://..." }, ...]Bulk Download Link Generation
Section titled “Bulk Download Link Generation”Generate Links in Bulk
Section titled “Generate Links in Bulk”Create download links for multiple files:
Bulk link generation:
Files → Select files → Bulk Actions → Generate Download Links
Options:Expires in: 7 daysDownload limit: 3 timesCustomer email: (optional)Custom expiry per file: ☐
Selected: 15 filesLinks to generate: 15
[Generate Links]Link output:
Generated 15 download links:
Chapter-1.pdf→ https://yourshop.com/download?key=abc123...[Copy] [Email]
Chapter-2.pdf→ https://yourshop.com/download?key=def456...[Copy] [Email]
...
Bulk actions:[Copy All Links][Export to CSV][Email All Links]Bulk File Processing
Section titled “Bulk File Processing”Batch Processing
Section titled “Batch Processing”Process files in batches:
Image optimization:
Files → Filter: Type = Image → Select all → Bulk Actions
Optimize Images:☑ Resize large images to max 2000px☑ Compress to 80% quality☑ Convert to WebP format☑ Preserve original (backup)
Files: 45 imagesEstimated savings: 65% file sizeTime: ~5 minutes
[Start Optimization]PDF operations:
Filter: Type = PDF → Bulk Actions → PDF Operations
☑ Compress PDFs (reduce file size)☑ Add watermark (configured in settings)☐ Split multi-page PDFs☐ Merge PDFs (select order)☑ Optimize for web viewing
Files: 78 PDFs[Process PDFs]Bulk Renaming
Section titled “Bulk Renaming”Rename Multiple Files
Section titled “Rename Multiple Files”Rename files in bulk:
Pattern-based renaming:
Files → Select files → Bulk Actions → Rename
Current names:file1.pdf, file2.pdf, file3.pdf
New pattern:{product_name}_Chapter-{sequence}.pdf
Preview:file1.pdf → Complete-Course_Chapter-1.pdffile2.pdf → Complete-Course_Chapter-2.pdffile3.pdf → Complete-Course_Chapter-3.pdf
Variables:{product_name} - Mapped product name{sequence} - Sequential number{date} - Upload date{original} - Original filename
[Apply Rename]Find and replace:
Rename Files:Find: "Chapter"Replace: "Module"Case sensitive: ☐Regex: ☐
Files affected: 45Preview: [Show changes]
[Rename Files]Bulk File Moving
Section titled “Bulk File Moving”Organize Files
Section titled “Organize Files”Move files between locations:
Move to pack:
1. Select files (15 selected)2. Bulk Actions → Move to Pack3. Select pack: "Course Bundle Files" or: [Create New Pack]4. [Move Files]
Result: 15 files moved to packProduct mappings: Updated automaticallyStorage location:
Move files to different storage:Primary storage: Cloudflare R2Backup storage: BackBlaze B2
Select files → Bulk Actions → Change StorageTarget: Backup storagePreserve original: ☑ Yes (copy, not move)
[Change Storage Location]Automation
Section titled “Automation”Scheduled Bulk Operations
Section titled “Scheduled Bulk Operations”Automate recurring tasks:
Schedule bulk actions:
Settings → Automation → Scheduled Tasks
Task: Clean old filesSchedule: Monthly (1st of month, 2:00 AM)Action: Delete filesCriteria: • Uploaded before 365 days ago • Not mapped to any product • Not downloaded in 180 daysNotification: Email summary
[Create Schedule]Auto-tagging:
Task: Auto-tag new filesSchedule: Daily (3:00 AM)Action: Add tags based on filenameRules: • Contains "ebook" → Tag "ebook" • Contains "course" → Tag "course" • File type PDF → Tag "pdf" • Size > 100MB → Tag "large-file"
[Create Auto-Tag Rule]API Bulk Operations
Section titled “API Bulk Operations”Using API for Bulk Actions
Section titled “Using API for Bulk Actions”Programmatic bulk operations:
Bulk delete via API:
POST /api/files/bulk-deleteAuthorization: Bearer {api_key}
{ "file_ids": ["file_1", "file_2", "file_3", ...], "remove_mappings": true, "backup_first": false}
Response:{ "deleted": 247, "failed": 0, "errors": []}Bulk update via API:
PUT /api/files/bulk-updateAuthorization: Bearer {api_key}
{ "file_ids": ["file_1", "file_2", ...], "updates": { "expiry_days": 90, "download_limit": 10, "tags": ["premium", "course"] }}
Response:{ "updated": 247, "failed": 0}Performance Optimization
Section titled “Performance Optimization”Efficient Bulk Processing
Section titled “Efficient Bulk Processing”Handle large operations:
Batching strategy:
Large operation (1000+ files):Split into batches: 100 files per batchProcess sequentially: Wait for batch completionMonitor: Check for errors after each batch
Benefits:• Prevents timeouts• Easier error handling• Can pause/resume• Better progress trackingBackground processing:
Large bulk operations run in background:• Bulk delete (>100 files)• Bulk update (>500 files)• Batch processing• File optimization
Notification when complete:Email: ✓In-app: ✓Includes: Summary, errors, next stepsMonitoring Bulk Operations
Section titled “Monitoring Bulk Operations”Progress Tracking
Section titled “Progress Tracking”Monitor bulk operations:
Progress indicator:
Bulk Operation in Progress:Deleting 247 files...
Progress: [████████░░] 185/247 (75%)Elapsed: 2m 30sRemaining: ~50sErrors: 2
[View Details] [Cancel Operation]Detailed view:
File-by-file status:✓ file_001.pdf - Deleted✓ file_002.pdf - Deleted❌ file_003.pdf - Error: File in use✓ file_004.pdf - Deleted...
[Retry Failed] [Export Log]Operation History
Section titled “Operation History”Review past operations:
Bulk operation log:
Settings → Advanced → Operation History
Recent bulk operations:| Date | Action | Files | Status | Duration ||------------|-------------|-------|---------|----------|| Jan 15 3PM | Delete | 247 | Success | 3m 20s || Jan 14 2PM | Update tags | 145 | Success | 45s || Jan 12 1PM | Upload | 89 | Partial | 5m 10s |
Click for details: Affected files, errors, userBest Practices
Section titled “Best Practices”1. Test on Small Sample First
Section titled “1. Test on Small Sample First”Before bulk operation:
1. Select 5-10 files2. Apply action3. Verify result correct4. Then apply to all files
Prevents: Mass mistakes2. Backup Before Destructive Actions
Section titled “2. Backup Before Destructive Actions”Before deleting:
✓ Export file list (CSV)✓ Download files (if not backed up)✓ Document product mappings✓ Screenshot settings
Then: Proceed with bulk delete3. Use Filters Effectively
Section titled “3. Use Filters Effectively”Narrow down selection:
Instead of:Select all 1000 files → Apply action (risky)
Do this:Filter → Type: PDF → Unmapped → Select → ApplyResult: Only affects intended files4. Monitor Large Operations
Section titled “4. Monitor Large Operations”Don’t walk away:
Large bulk operations:✓ Monitor progress✓ Watch for errors✓ Be ready to cancel if issues✓ Review completion summary5. Document Bulk Changes
Section titled “5. Document Bulk Changes”Keep records:
What: Deleted 247 old filesWhen: January 15, 2024Why: Storage cleanupCriteria: Uploaded before 2023-01-01, unmappedResult: 247 deleted, 0 errorsBy: Admin userWhy: Audit trail, troubleshooting, accountability
Troubleshooting
Section titled “Troubleshooting”Bulk Operation Stuck
Section titled “Bulk Operation Stuck”If operation not progressing:
Check:
1. Browser still active (not sleeping)2. Internet connection stable3. Operation running in background (check jobs)4. Server status (no maintenance)Fix:
• Refresh page (operation continues in background)• Check operation history for completion• Contact support if truly stuckPartial Failures
Section titled “Partial Failures”Some files failed:
Review errors:
Operation: Bulk delete 247 filesSuccess: 245Failed: 2
Failed files:• file_123.pdf - Error: Currently in use• file_456.pdf - Error: Permission denied
Actions:[Retry Failed][Skip and Continue][Export Error Log]Undo Bulk Operations
Section titled “Undo Bulk Operations”Can’t undo, but can restore:
Deleted files:
Recent deletions (< 7 days):Available in: Trash/Recycle BinRestore: Select files → [Restore]
After 7 days: Permanently deletedPrevention: Always backup firstNext Steps
Section titled “Next Steps”- Migrating from Other Apps - Migration guide
- Importing File Data - Import methods
- Data Migration Best Practices - Advanced migration tips