Back to services

Files Sharing

File sharing application based on unique and temporary links.

View alternatives to Files Sharing
Suggest edit
Open source
Self-hostable
GPL-3.0
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Files Sharing is an open-source file sharing application written in PHP and built on the Laravel framework. It is released under the GPL-3.0 license and works much like WeTransfer, but you can deploy it on your own server. It does not need a database system: data is stored as JSON files in the storage directory, which keeps installation and maintenance fairly simple. The interface is available in English, French, German and Korean.

How It Works

Users upload one or more files as a "bundle". Each bundle has two sharing links:

  • Preview link: recipients can view all the files in the bundle and download the whole bundle as a ZIP file;
  • Direct download link: skips the preview and downloads all the files at once.

Both links share the same authorization code. The application ships with a Laravel Artisan background task that runs every five minutes as a scheduled task and deletes the files of expired bundles from disk.

Key Features

  • Upload access control: restrict by IP, or require a username and password to log in; both methods can be used together
  • Bundle settings: title, description, expiration date, maximum number of downloads, password, and more
  • Upload by drag and drop or by browsing local files, and keep adding files to a bundle for several days afterward
  • Download rate limiting
  • Whole-bundle ZIP download, with the ZIP also password-protected when a password is set
  • Option to block duplicate uploads (using file hash checks)
  • Security through tokens, authorization codes and file storage that is not publicly accessible

Target Users and Use Cases

It suits individuals, small teams and companies who want to transfer files through their own server instead of a public service such as WeTransfer. Examples include sending design drafts to clients, sharing large files with colleagues, or distributing temporary material that should expire automatically.

Deployment

Docker

The official image axeloz/filesharing is available on Docker Hub:

docker run -d -p 8080:80 \
  -v <local_path>:/app/storage/content \
  --name filesharing \
  -e APP_URL="<your_url>" \
  -e UPLOAD_MAX_FILESIZE="1G" \
  -e UPLOAD_MAX_FILES=100 \
  -e LIMIT_DOWNLOAD_RATE="100K" \
  axeloz/filesharing:latest

You can also deploy it with Docker Compose. If you need HTTPS, you can put a reverse proxy such as Nginx in front to terminate SSL.

Standalone Installation

  1. Clone the repository and point your web server's root directory to ./public;
  2. Run composer install, yarn --production and yarn build;
  3. Make sure the PHP process has write permission on ./storage;
  4. Copy .env.example to .env and edit the configuration, then run php artisan key:generate;
  5. (Optional) Create a user with php artisan fs:user:create;
  6. Configure cron to run the Laravel scheduler, which cleans up expired bundles.

Technical Requirements

  • PHP 8.3 or later
  • The PHP extensions Laravel commonly requires (Ctype, cURL, DOM, Fileinfo, Mbstring, OpenSSL, PDO, Tokenizer, XML, etc.), plus the ZipArchive and SQLite extensions
  • Ability to configure CRON scheduled tasks
  • The front end uses Dropzone.js, Alpine.js, Tailwind CSS and others

Things to Note

  • If neither UPLOAD_LIMIT_IPS is set nor any user has been created, anyone can upload files.
  • When using Nginx, you need to increase client_max_body_size and adjust PHP's post_max_size, upload_max_filesize and memory_limit accordingly to upload large files.
  • The author provides an online demo and a YouTube video demo.