Skip to content

Releases

version:1.0.2 -> multi batch upload

Choose a tag to compare

@iotserver24 iotserver24 released this 14 Sep 05:47

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.ts utility

  • βœ… 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

⚠️ IMPORTANT NOTICE: Before uploading files larger than 10MB, you MUST configure CORS settings on your storage bucket. Without proper CORS configuration, you will encounter these errors:

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.json

Alternative - AWS Console:

  1. Go to AWS S3 Console
  2. Select your bucket
  3. Go to "Permissions" tab
  4. Scroll to "Cross-origin resource sharing (CORS)"
  5. Click "Edit" and paste the CORS configuration
  6. 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.com

Alternative - Cloudflare Dashboard:

  1. Go to Cloudflare Dashboard
  2. Navigate to R2 Object Storage
  3. Select your bucket
  4. Go to "Settings" tab
  5. Scroll to "CORS policy"
  6. Click "Add CORS policy"
  7. Paste the CORS configuration
  8. Click "Save"

3. Google Cloud Storage

# Using gsutil
gsutil cors set cors.json gs://YOUR_BUCKET_NAME

Alternative - Google Cloud Console:

  1. Go to Google Cloud Console
  2. Navigate to Cloud Storage
  3. Select your bucket
  4. Click on "Permissions" tab
  5. Scroll to "CORS configuration"
  6. Click "Edit" and add the CORS rules
  7. 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 3000

Alternative - Azure Portal:

  1. Go to Azure Portal
  2. Navigate to your Storage Account
  3. Go to "Resource sharing (CORS)"
  4. Select "Blob service"
  5. Add CORS rules for each method
  6. 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.com

Alternative - DigitalOcean Control Panel:

  1. Go to DigitalOcean Control Panel
  2. Navigate to Spaces
  3. Select your Space
  4. Go to "Settings" tab
  5. Scroll to "CORS configuration"
  6. Click "Add CORS rule"
  7. Paste the CORS configuration
  8. 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.com

Alternative - Wasabi Console:

  1. Go to Wasabi Console
  2. Navigate to your bucket
  3. Go to "Properties" tab
  4. Scroll to "Cross-origin resource sharing (CORS)"
  5. Click "Edit" and add CORS rules
  6. 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.json

Alternative - MinIO Console:

  1. Go to MinIO Console (usually http://your-minio-server:9001)
  2. Navigate to your bucket
  3. Go to "Settings" tab
  4. Click on "CORS configuration"
  5. Add the CORS rules
  6. Click "Save"

8. Firebase Storage

# Using Google Cloud SDK
gcloud storage buckets update gs://YOUR_BUCKET_NAME \
  --cors-file=cors.json

Alternative - Firebase Console:

  1. Go to Firebase Console
  2. Navigate to Storage
  3. Go to "Rules" tab
  4. Add CORS configuration in the rules
  5. 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.json

Alternative - Oracle Cloud Console:

  1. Go to Oracle Cloud Console
  2. Navigate to Object Storage
  3. Select your bucket
  4. Go to "CORS" tab
  5. Click "Add CORS rule"
  6. Configure the CORS settings
  7. 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

  1. Open browser developer tools (F12)
  2. Go to "Network" tab
  3. Attempt to upload a large file (>10MB)
  4. Check for CORS-related errors in the console
  5. 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_URL

Google Cloud Storage

# Verify CORS configuration
gsutil cors get gs://YOUR_BUCKET_NAME

πŸ“‹ Migration Guide

For Existing Users

  1. Update Your Application

    git pull origin main
    npm install
  2. Configure CORS (CRITICAL)

    • Follow the CORS configuration steps above
    • Test with a small file first
    • Then test with a large file (>10MB)
  3. Verify Upload Functionality

    • Test regular uploads (files <10MB)
    • Test multipart uploads (files >10MB)
    • Check upload progress and completion

For New Users

  1. 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...
Read more

version: 1.0.1

Choose a tag to compare

@iotserver24 iotserver24 released this 13 Sep 13:09

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=auto

2. 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=auto

AWS 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-1

MinIO:

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 -d

Manual 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

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request
  5. Follow our Contributing Guide

πŸ“ž Support & Community

Getting Help

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

Choose a tag to compare

@iotserver24 iotserver24 released this 13 Sep 11:32

Full Changelog: https://github.com/iotserver24/S3-MegaVault/commits/1.0.0

initial release of the application