Skip to content
Proyek

Tentang

🔥Free-FS 开源文件管理系统:基于 Spring Boot 3.5 + MyBatis Flex + MySQL + Redis 的企业级网盘系统。支持分片上传、断点续传、秒传、文件分享、在线预览。集成阿里云OSS、七牛云Kodo、MinIO、本地存储等多种存储方式。提供文件管理、用户权限、存储配额、回收站等完整功能。适用于企业网盘、文件管理、云存储、资源管理等场景。

Data

Cara angka ini diukur

355 bintang78 Fork +2 dalam 24 jam

Yang dapat Anda lakukan

  • Large File Upload - Chunked upload, resumable upload, instant upload with TB-level file support
  • Real-time Progress - Real-time upload progress tracking, accurate to chunk level
  • Instant Upload - MD5-based dual verification for instant file completion
  • Pluggable Storage - SPI mechanism for hot-swappable storage, integrate new platforms in 5 minutes

Pertumbuhan bintang terukur

dalam 24 jam
+2
dalam 7 hari
+2
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
Free FS Logo

Free FS

Modern File Management & Cloud Storage System

An enterprise-level file management and cloud storage system backend based on Spring Boot 4.x, focusing on providing high-performance and reliable file storage and management services.

Downloads Downloads

star fork GitHub stars GitHub forks AUR

Issue Tracker · Feature Request

Documentation | 中文文档


Repository

Gitee: https://gitee.com/dromara/free-fs

GitHub: https://github.com/dromara/free-fs

Frontend Repository

🚀 Recommended (Latest)

Free FS/free-fs-frontend


Features

Core Highlights

  • Large File Upload - Chunked upload, resumable upload, instant upload with TB-level file support
  • Real-time Progress - Real-time upload progress tracking, accurate to chunk level
  • Instant Upload - MD5-based dual verification for instant file completion
  • Pluggable Storage - SPI mechanism for hot-swappable storage, integrate new platforms in 5 minutes
  • Workspace - Multi-workspace support for efficient team collaboration
  • Internationalization - Chinese and English bilingual support, easily extensible
  • Modular Architecture - Clear layered design, easy to maintain and extend
  • Online Preview - Support multiple file formats with anti-hotlink protection
  • Secure & Reliable - JWT authentication, permission control, file integrity verification

Feature List

  • File Management

    • File upload (chunked, resumable, instant)
    • File preview
    • File download
    • Folder creation and management
    • File/folder rename and move
    • File sharing with access code
    • File deletion
  • Workspace 🆕

    • Multi-workspace management
    • Workspace member management
    • Role-based access control
    • Member invitation (email invitation)
    • Workspace switching
  • Team Collaboration 🆕

    • Member invitation and management
    • Role permission assignment
    • Workspace isolation
    • Member permission control
  • Internationalization 🆕

    • Simplified Chinese
    • English
    • Extensible for more languages
  • Authentication & Authorization

    • Username/password login
    • Email verification code login 🆕
    • JWT Token authentication
    • Role-based access control (RBAC)
  • Recycle Bin

    • File restoration (batch operation supported)
    • Permanent deletion (batch operation supported)
    • One-click empty recycle bin
    • Auto-cleanup mechanism
  • Storage Platform

    • Multiple storage platforms (Local, MinIO, Aliyun OSS, Qiniu Kodo, S3-compatible, etc.)
    • One-click platform switching
    • Platform configuration management
    • Storage space statistics

Preview Support

The system supports preview for the following file types by default:

  • Images: jpg, jpeg, png, gif, bmp, webp, svg, tif, tiff
  • Documents: pdf, doc, docx, xls, xlsx, csv, ppt, pptx
  • Text/Code: txt, log, ini, properties, yaml, yml, conf, java, js, jsx, ts, tsx, py, c, cpp, h, hpp, cc, cxx, html, css, scss, sass, less, vue, php, go, rs, rb, swift, kt, scala, json, xml, sql, sh, bash, bat, ps1, cs, toml
  • Markdown: md, markdown
  • Audio/Video: mp4, avi, mkv, mov, wmv, flv, webm, mp3, wav, flac, aac, ogg, m4a, wma
  • Archives: zip, rar, 7z, tar (view directory structure, preview files in archive)
  • Others: drawio

Quick Start

Requirements

  • JDK >= 21
  • Maven >= 3.8
  • MySQL >= 8.0 or PostgreSQL >= 14
  • Redis

Installation

# Clone the repository
git clone https://gitee.com/dromara/free-fs.git

# Enter project directory
cd free-fs

# Build the project
mvn clean install -DskipTests

Configuration

  1. Initialize Database

    # MySQL
    mysql -u root -p < _sql/mysql/free-fs.sql
    
    # PostgreSQL
    psql -U postgres -c "CREATE DATABASE free-fs;"
    psql -U postgres -d free-fs -f _sql/postgresql/free-fs_pg.sql
    
  2. Modify Configuration

    Update database and Redis configuration in fs-admin/src/main/resources/application-dev.yml

Run

# Start the application
cd fs-admin
mvn spring-boot:run

# Or run FreeFsApplication in your IDE

Access:

Default Account

Username Password
admin admin

Screenshots

Feature Screenshot 1 Screenshot 2 Screenshot 3
Login login.png register.png forget_password.png
Dashboard dashboard.png
My Files grid_file.png file.png
Recycle Bin recycle.png recycle_clear.png
File Sharing share.png share_create.png share_list.png
Move Files move.png
Transfer transmission.png
Storage Platform storage.png add_storage.png enable_storage.png
Profile profile.png profile_auth.png

Project Structure

free-fs/
├── fs-admin/                    # Web admin module
├── fs-dependencies/             # Dependency management (BOM)
├── fs-framework/                # Framework layer
│   ├── fs-common-core/          # Common core module
│   ├── fs-notify/               # Notification module (email)
│   ├── fs-orm/                  # ORM configuration
│   ├── fs-preview/              # Preview wrapper
│   ├── fs-redis/                # Redis configuration
│   ├── fs-security/             # Security & authentication
│   ├── fs-swagger/              # API documentation
│   ├── fs-sse/                  # SSE support
│   └── fs-storage-plugin/       # Storage plugin framework
│       ├── storage-plugin-boot/        # Plugin core management
│       ├── storage-plugin-core/        # Plugin core interface
│       ├── storage-plugin-local/       # Local storage plugin
│       ├── storage-plugin-aliyunoss/   # Aliyun OSS plugin
│       ├── storage-plugin-kodo/        # Qiniu Kodo plugin
│       ├── storage-plugin-obs/         # Tencent Cloud OBS plugin
│       ├── storage-plugin-minio/       # MinIO plugin
│       └── storage-plugin-rustfs/      # RustFS plugin
└── fs-modules/                  # Business modules
    ├── fs-file/                 # File management
    ├── fs-storage/              # Storage platform management
    ├── fs-system/               # System management (user, workspace, role, permission)
    ├── fs-log/                  # Logging module
    └── fs-plan/                 # Scheduled tasks

Contributing

We welcome all contributions, whether it's new features, bug fixes, or documentation improvements!

How to Contribute

  1. Fork this repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Code Standards

  • Follow Alibaba Java Coding Guidelines
  • Use Lombok to simplify code
  • Write clear comments
  • Follow Conventional Commits

Commit Convention

feat: New feature
fix: Bug fix
docs: Documentation update
style: Code formatting
refactor: Code refactoring
perf: Performance optimization
test: Testing related
chore: Build/toolchain update

Issue Tracker

If you find a bug or have a feature suggestion, please report it via:


License

This project is licensed under the Apache License 2.0.


Acknowledgments


Links


Contact

wx.png
  • WeChat Group:
wx.png
  • WeChat Official Account:
wp.png

❤ Donate

If you think the free-fs project can help you, or bring you convenience and inspiration, or you agree with this project, you can sponsor my efforts!

Please give a ⭐️ to support!

pay.png

Made with ❤️ by @xddcode

Jelajahi proyek terkait

Memuat…