Files Sharing
File sharing application based on unique and temporary links.
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
- Clone the repository and point your web server's root directory to
./public; - Run
composer install,yarn --productionandyarn build; - Make sure the PHP process has write permission on
./storage; - Copy
.env.exampleto.envand edit the configuration, then runphp artisan key:generate; - (Optional) Create a user with
php artisan fs:user:create; - 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_IPSis set nor any user has been created, anyone can upload files. - When using Nginx, you need to increase
client_max_body_sizeand adjust PHP'spost_max_size,upload_max_filesizeandmemory_limitaccordingly to upload large files. - The author provides an online demo and a YouTube video demo.
Discover more
FileRise
🗂️ FileRise – lightweight, self-hosted file manager & storage hub with granular ACLs, resumable uploads, encrypted folders, WebDAV & SSO. Fully Docker / Unraid compatible.
Gokapi
Lightweight server to share files, which expire after a set amount of downloads or days. Similar to the discontinued Firefox Send, with the difference that only the admin is allowed to upload files.
Jirafeau
One-click-fileshare project. Select your file, upload, and share a link. That's it.
Pairdrop
Local file sharing in your browser, inspired by Apple's AirDrop (fork of Snapdrop).
Picsur
A simple imaging hosting platform that allows you to easily host, edit, and share images.
PictShare
PictShare is a multi lingual, open source image hosting service with a simple resizing and upload API.