Repository navigation
Releases
version:1.0.2 -> multi batch upload
Release Notes for Version 1.0.2
Release Date: September 14, 2025
π Overview
Version 1.0.2 introduces major improvements to file upload functionality with S3-compatible direct multipart uploads for handling large files efficiently. This release also includes comprehensive documentation updates and CORS configuration guides to ensure seamless file uploads across all supported storage providers.
β¨ New Features
π Large File Upload Support (Multipart Uploads)
- Automatic Detection: Files larger than 10MB automatically use multipart upload
- Progress Tracking: Real-time upload progress with part-level details
- Parallel Uploads: Uploads up to 5 parts simultaneously for better performance
- Resilient Uploads: Individual part failures don't affect the entire upload
- Direct S3 Upload: Client uploads directly to storage, reducing server load
π± Enhanced Mobile Support
- Mobile Multipart Uploads: Full multipart upload support for mobile clients
- Mobile-Specific Endpoints: Dedicated mobile API endpoints for multipart uploads
- CORS Headers: Proper CORS headers for mobile app integration
π§ Technical Improvements
Backend Enhancements
-
β New API Endpoints:
/api/files/multipart/initiate- Start multipart upload/api/files/multipart/presigned-urls- Generate presigned URLs/api/files/multipart/complete- Complete multipart upload/api/files/multipart/abort- Abort failed uploads- Mobile equivalents at
/api/mobile/files/multipart/*
-
β Multipart Upload Library: New
src/lib/multipart-upload.tsutility -
β Enhanced Error Handling: Better error messages and recovery
-
β Storage Mode Support: Works with both bucket and folder storage modes
Frontend Enhancements
- β Smart Upload Detection: Automatically chooses upload method based on file size
- β Enhanced Progress UI: Shows part upload progress and status
- β Error Recovery: Automatic cleanup of failed uploads
- β Batch Processing: Maintains existing batch upload functionality
π Documentation Updates
New Documentation Pages
- β
CORS Setup Guide:
/docs/getting-started/cors-setup - β
Storage Providers Guide:
docs/storage-providers-cors.md - β
Storage Providers Reference:
STORAGE_PROVIDERS.md - β Updated Installation Guides: Enhanced with CORS configuration steps
Enhanced Documentation
- β API Reference: Updated with multipart upload endpoints
- β Getting Started Guide: Added CORS configuration requirements
- β README.md: Prominent CORS warnings and setup instructions
π¨ CRITICAL: CORS Configuration Required
Common CORS Errors
Error 1: "Access to XMLHttpRequest at 'https://your-bucket.s3.amazonaws.com/your-file' from origin 'https://your-website.com' has been blocked by CORS policy."
Error 2: "OPTIONS https://your-bucket.s3.amazonaws.com/your-file 403 (Forbidden)"
Error 3: "Network Error: Failed to fetch"
π§ CORS Configuration for All Storage Providers
π Step 1: Create CORS Configuration File
Create a file named cors.json in your project root:
[
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET", "PUT", "POST", "DELETE", "HEAD"],
"AllowedHeaders": ["*"],
"ExposeHeaders": ["ETag", "x-amz-version-id"],
"MaxAgeSeconds": 3000
}
]π§ Step 2: Apply CORS Configuration
1. Amazon S3
# Using AWS CLI
aws s3api put-bucket-cors \
--bucket YOUR_BUCKET_NAME \
--cors-configuration file://cors.jsonAlternative - AWS Console:
- Go to AWS S3 Console
- Select your bucket
- Go to "Permissions" tab
- Scroll to "Cross-origin resource sharing (CORS)"
- Click "Edit" and paste the CORS configuration
- Click "Save changes"
2. Cloudflare R2
# Using AWS CLI with R2 endpoint
aws s3api put-bucket-cors \
--bucket YOUR_BUCKET_NAME \
--cors-configuration file://cors.json \
--endpoint-url https://YOUR_ACCOUNT_ID.r2.cloudflarestorage.comAlternative - Cloudflare Dashboard:
- Go to Cloudflare Dashboard
- Navigate to R2 Object Storage
- Select your bucket
- Go to "Settings" tab
- Scroll to "CORS policy"
- Click "Add CORS policy"
- Paste the CORS configuration
- Click "Save"
3. Google Cloud Storage
# Using gsutil
gsutil cors set cors.json gs://YOUR_BUCKET_NAMEAlternative - Google Cloud Console:
- Go to Google Cloud Console
- Navigate to Cloud Storage
- Select your bucket
- Click on "Permissions" tab
- Scroll to "CORS configuration"
- Click "Edit" and add the CORS rules
- Click "Save"
4. Microsoft Azure Blob Storage
# Using Azure CLI
az storage cors add \
--services b \
--methods GET PUT POST DELETE HEAD \
--origins "*" \
--allowed-headers "*" \
--exposed-headers "ETag" \
--max-age 3000Alternative - Azure Portal:
- Go to Azure Portal
- Navigate to your Storage Account
- Go to "Resource sharing (CORS)"
- Select "Blob service"
- Add CORS rules for each method
- Click "Save"
5. DigitalOcean Spaces
# Using AWS CLI with Spaces endpoint
aws s3api put-bucket-cors \
--bucket YOUR_BUCKET_NAME \
--cors-configuration file://cors.json \
--endpoint-url https://YOUR_REGION.digitaloceanspaces.comAlternative - DigitalOcean Control Panel:
- Go to DigitalOcean Control Panel
- Navigate to Spaces
- Select your Space
- Go to "Settings" tab
- Scroll to "CORS configuration"
- Click "Add CORS rule"
- Paste the CORS configuration
- Click "Save"
6. Wasabi Cloud Storage
# Using AWS CLI with Wasabi endpoint
aws s3api put-bucket-cors \
--bucket YOUR_BUCKET_NAME \
--cors-configuration file://cors.json \
--endpoint-url https://s3.wasabisys.comAlternative - Wasabi Console:
- Go to Wasabi Console
- Navigate to your bucket
- Go to "Properties" tab
- Scroll to "Cross-origin resource sharing (CORS)"
- Click "Edit" and add CORS rules
- Click "Save"
7. MinIO (Self-Hosted)
# Install MinIO Client
curl https://dl.min.io/client/mc/release/linux-amd64/mc -o mc
chmod +x mc && sudo mv mc /usr/local/bin/
# Configure MinIO alias
mc alias set myminio http://your-minio-server:9000 YOUR_ACCESS_KEY YOUR_SECRET_KEY
# Create MinIO-specific CORS config (cors-minio.json)
{
"CORSRules": [
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET", "HEAD", "POST", "PUT", "DELETE"],
"AllowedHeaders": ["*"],
"ExposeHeaders": ["ETag"],
"MaxAgeSeconds": 3000
}
]
}
# Apply CORS configuration
mc admin config set myminio/ cors-minio.jsonAlternative - MinIO Console:
- Go to MinIO Console (usually http://your-minio-server:9001)
- Navigate to your bucket
- Go to "Settings" tab
- Click on "CORS configuration"
- Add the CORS rules
- Click "Save"
8. Firebase Storage
# Using Google Cloud SDK
gcloud storage buckets update gs://YOUR_BUCKET_NAME \
--cors-file=cors.jsonAlternative - Firebase Console:
- Go to Firebase Console
- Navigate to Storage
- Go to "Rules" tab
- Add CORS configuration in the rules
- Click "Publish"
9. Oracle Cloud Object Storage
# Using OCI CLI
oci os bucket update \
--bucket-name YOUR_BUCKET_NAME \
--namespace YOUR_NAMESPACE \
--cors-configuration file://cors.jsonAlternative - Oracle Cloud Console:
- Go to Oracle Cloud Console
- Navigate to Object Storage
- Select your bucket
- Go to "CORS" tab
- Click "Add CORS rule"
- Configure the CORS settings
- Click "Save"
β Providers NOT Recommended for Large Files
Backblaze B2
- CORS Support: β Limited
- Recommendation: Use only for small file uploads
- Alternative: Use server-side uploads only
π§ͺ Testing Your CORS Configuration
1. Browser Testing
- Open browser developer tools (F12)
- Go to "Network" tab
- Attempt to upload a large file (>10MB)
- Check for CORS-related errors in the console
- Verify that upload completes successfully
2. Command Line Verification
S3-Compatible Services
# Verify CORS configuration
aws s3api get-bucket-cors --bucket YOUR_BUCKET_NAME --endpoint-url YOUR_ENDPOINT_URLGoogle Cloud Storage
# Verify CORS configuration
gsutil cors get gs://YOUR_BUCKET_NAMEπ Migration Guide
For Existing Users
-
Update Your Application
git pull origin main npm install
-
Configure CORS (CRITICAL)
- Follow the CORS configuration steps above
- Test with a small file first
- Then test with a large file (>10MB)
-
Verify Upload Functionality
- Test regular uploads (files <10MB)
- Test multipart uploads (files >10MB)
- Check upload progress and completion
For New Users
- Follow Quick Start Guide
- Clone the repository
- Configure environment variables
- Configure CORS before starting
- Start the application
π Bug Fixes
- β Fixed: Large file upload failures due to server timeouts
- β Fixed: CORS-related upload errors
- β Fixed: Mobile upload issues with large files
- β Fixed: Progress tracking for multipart uploads
- β Fixed: Error handling and cleanup for failed uploads
π Breaking Changes
- None: This release is fully...
version: 1.0.1
MegaVault v1.0.1 Release Notes
Release Date: December 2024
Version: 1.0.1
Type: Minor Release with Major Improvements
π What's New in v1.0.1
This release focuses on developer experience improvements, better S3 compatibility, and enhanced documentation. We've made MegaVault more accessible and easier to use with any S3-compatible storage service.
Full Changelog: https://github.com/iotserver24/S3-MegaVault/commits/1.0.1
β¨ Major Features & Improvements
π§ Environment Variable Rename (Breaking Change)
All storage-related environment variables have been renamed for better clarity:
| Old Variable Name | New Variable Name | Purpose |
|---|---|---|
CLOUDFLARE_R2_ENDPOINT |
S3_ENDPOINT |
S3-compatible storage endpoint URL |
CLOUDFLARE_R2_ACCESS_KEY_ID |
S3_ACCESS_KEY_ID |
S3-compatible access key |
CLOUDFLARE_R2_SECRET_ACCESS_KEY |
S3_SECRET_ACCESS_KEY |
S3-compatible secret key |
CLOUDFLARE_R2_BUCKET |
S3_BUCKET |
Storage bucket name |
CLOUDFLARE_R2_REGION |
S3_REGION |
Storage region |
Why this change?
- Makes it clear that any S3-compatible service can be used
- Removes confusion about Cloudflare-only requirement
- Better developer experience for AWS S3, MinIO, DigitalOcean Spaces users
π Enhanced Documentation System
- 69 comprehensive documentation pages covering all aspects
- Complete API reference with examples for all endpoints
- Getting started guides for installation and configuration
- Developer documentation for contributing and deployment
- User guides for dashboard and file management
- Security documentation with best practices
π¨ UI/UX Improvements
- Repositioned Docs button in dashboard sidebar for better navigation
- Improved dashboard layout with better organization
- Enhanced mobile responsiveness across all pages
- Better accessibility with proper ARIA labels and semantic HTML
π Bug Fixes
- Fixed mobile preview API import errors and authentication issues
- Resolved build warnings from deprecated Tailwind CSS plugins
- Fixed bash script syntax in documentation examples
- Corrected all GitHub repository URLs throughout documentation
π Migration Guide
For Existing Users
If you're upgrading from v1.0.0, you'll need to update your environment variables:
1. Update your .env.local file:
# Old variables (remove these)
# CLOUDFLARE_R2_ENDPOINT=...
# CLOUDFLARE_R2_ACCESS_KEY_ID=...
# CLOUDFLARE_R2_SECRET_ACCESS_KEY=...
# CLOUDFLARE_R2_BUCKET=...
# CLOUDFLARE_R2_REGION=...
# New variables (use these)
S3_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com
S3_ACCESS_KEY_ID=your-access-key-id
S3_SECRET_ACCESS_KEY=your-secret-access-key
S3_BUCKET=your-bucket-name
S3_REGION=auto2. Update Docker Compose (if using):
# Update your docker-compose.yml environment section
environment:
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID}
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY}
- S3_BUCKET=${S3_BUCKET}
- S3_REGION=${S3_REGION:-auto}3. Restart your application:
npm run build
npm run startπ New Features
π Comprehensive Documentation
- Complete getting started guide with step-by-step installation
- Environment configuration guide with examples for all S3 providers
- API documentation with interactive examples
- Developer guides for contributing and deployment
- User guides for all dashboard features
π Improved Navigation
- Docs button repositioned in dashboard sidebar for better UX
- Consistent navigation across all documentation pages
- Better organization of features and settings
π οΈ Developer Experience
- Clearer environment variable names for better understanding
- Updated examples showing compatibility with multiple S3 providers
- Improved error messages and debugging information
- Better build output with resolved warnings
π§ Technical Improvements
Build System
- β Build warnings resolved - Clean build output
- β TypeScript compilation - No errors or warnings
- β ESLint configuration - Proper linting setup
- β Tailwind CSS - Removed deprecated plugins
Code Quality
- β Import/export issues fixed - All modules properly imported
- β Authentication flow improved - Better error handling
- β Mobile API enhanced - Fixed preview functionality
- β Documentation syntax - Fixed bash script examples
Security
- β Environment validation - Proper configuration checking
- β Authentication security - Secure token handling
- β CORS configuration - Proper cross-origin setup
- β Input validation - Enhanced security checks
π± Mobile App Status
Current Status: The Flutter mobile app is still in development and not ready for production use.
What's Available:
- β Mobile API endpoints - Complete backend support
- β Authentication system - JWT-based mobile auth
- β File operations - Upload, download, list, delete
- π Flutter app - Under active development
Contributing: We're actively seeking Flutter developers to help complete the mobile application. See the Contributing Guide for details.
π S3 Provider Compatibility
MegaVault now clearly supports all major S3-compatible storage providers:
β Fully Supported
- Cloudflare R2 - Primary development platform
- AWS S3 - Amazon Web Services
- MinIO - Self-hosted S3-compatible storage
- DigitalOcean Spaces - DigitalOcean's object storage
- Backblaze B2 - Cost-effective cloud storage
- Wasabi - Hot cloud storage
π Configuration Examples
Cloudflare R2:
S3_ENDPOINT=https://your-account-id.r2.cloudflarestorage.com
S3_ACCESS_KEY_ID=your-r2-access-key
S3_SECRET_ACCESS_KEY=your-r2-secret-key
S3_BUCKET=your-bucket-name
S3_REGION=autoAWS S3:
S3_ENDPOINT=https://s3.us-east-1.amazonaws.com
S3_ACCESS_KEY_ID=your-aws-access-key
S3_SECRET_ACCESS_KEY=your-aws-secret-key
S3_BUCKET=your-s3-bucket
S3_REGION=us-east-1MinIO:
S3_ENDPOINT=http://localhost:9000
S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadmin
S3_BUCKET=your-minio-bucket
S3_REGION=us-east-1π Getting Started
Quick Start with Docker
# Clone the repository
git clone https://github.com/iotserver24/S3-MegaVault.git
cd S3-MegaVault
# Copy environment file
cp .env.example .env.local
# Edit configuration
nano .env.local
# Start with Docker
docker-compose up -dManual Installation
# Install dependencies
npm install
# Configure environment
cp .env.example .env.local
# Edit .env.local with your settings
# Build and start
npm run build
npm run startπ Performance & Statistics
Build Metrics
- Total Pages: 69 documentation pages
- API Endpoints: 30+ RESTful endpoints
- Bundle Size: Optimized for production
- Build Time: ~2-3 minutes on modern hardware
- Memory Usage: Efficient resource utilization
Feature Coverage
- β File Management: 100% complete
- β Authentication: 100% complete
- β Mobile API: 100% complete
- β Documentation: 100% complete
- π Mobile App: 30% complete (Flutter development needed)
π€ Contributing
We welcome contributions! Here's how you can help:
High Priority Needs
- Flutter developers for mobile app completion
- UI/UX designers for interface improvements
- Security experts for security audits
- Documentation writers for user guides
How to Contribute
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
- Follow our Contributing Guide
π Support & Community
Getting Help
- π Documentation: docs/ - Comprehensive guides
- π Bug Reports: GitHub Issues
- π¬ Discussions: GitHub Discussions
- π Security: Security Policy
Community
- β Star the project if you find it useful
- π΄ Fork and contribute to help others
- π’ Share with others who might benefit
- π Report bugs to help improve the project
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Thank you to all contributors, testers, and users who have helped make MegaVault v1.0.1 possible!
Special thanks to:
- The open-source community for inspiration and tools
- All beta testers for valuable feedback
- Contributors who helped with documentation
- S3-compatible storage providers for their services
π Download v1.0.1: Latest Release
π Full Documentation: docs/
π Report Issues: GitHub Issues
MegaVault v1.0.1 - Your data, your control, your cloud storage solution! π
initial version
Full Changelog: https://github.com/iotserver24/S3-MegaVault/commits/1.0.0
initial release of the application