File sharing, on fire

Share a file. Get a link.

Drop a file (up to 500 KB) and we'll store it on Filestack and hand you a link you can send anywhere.

GDPR Notice: This is a Filestack demonstration use case. Files are automatically deleted after one week. Do not upload sensitive data.

A Filestack demo

File sharing with short links demo

Drop in a file, watch a real progress bar, and get back a short link you can send anywhere. Filestack stores the file and serves it from its CDN; the app itself is one database table mapping a short code to a Filestack handle. Shared images can be filtered and transformed from the share page by editing the CDN URL.

Fireshare is a fictional company. Its people and figures are invented to show how Filestack works in file sharing. The uploads, processing and delivery run on the real Filestack API.

Read the use caseSource code on GitHubAll Filestack demosFilestack documentation

Filestack features in this demo

  • Upload with progressStore API over XHRUploads with a real progress bar, because fetch does not report upload progress.
  • CDN deliveryServes previews and downloads for any file type.
  • Image filtersmonochrome, blur, sepiaEffects chosen on the share page, applied by editing the URL.
  • Image effectsrounded_corners, polaroidMore effects, chained in one request.

How it works

  1. Drop a file. The file uploads to Filestack with live progress.
  2. Get a link. The app saves a short code for the Filestack handle and returns a link.
  3. Share it. Anyone with the link can preview or download the file.
  4. Transform it. Images can be filtered on the share page with CDN URL tasks.

Frequently asked questions

What is a file sharing app built on Filestack?

A file sharing app built on Filestack stores each file in Filestack storage and gives the sender a short link to pass on. The link opens the file, or a CDN preview of it, in the recipient's browser.

How does Fireshare upload files to Filestack?

The browser posts the file to Filestack's store endpoint, /api/store/S3, with the public API key. The response carries the file's CDN URL, and the app saves its handle under a 10-character code.

What database does the demo use?

Turso, a hosted libSQL database, through Drizzle ORM. One shares table holds the code, handle, filename, size and view count, indexed on code and fingerprint. Another database Drizzle supports, such as Postgres or MySQL, can replace it once the table is defined for that database.

How large can a shared file be?

The demo caps files at 500 KB with MAX_FILE_BYTES in lib/utils.ts. Raise the constant for larger files, and use the Filestack picker or SDK, which upload large files in parts and retry a failed part.

How do I secure uploads and shared links?

Sign each upload with a Filestack security policy made on your server, and give shared links an expiry in a signed policy. The demo uploads with the public key and checks every saved URL against the Filestack CDN.

Does the demo limit how many files a device can share?

Yes. Each device can create 10 shares in 24 hours. The browser sends a fingerprint built from the user agent, locale, screen and time zone, and the API counts that fingerprint's recent shares before saving a new one.

Is Fireshare a real company or a Filestack customer?

Fireshare is a fictional company, created to show how Filestack works in file sharing. The product, its people and its figures are invented, and the demo runs on the real Filestack API.

Can I see the code behind the Fireshare demo?

Yes. Fireshare is open source on GitHub in the filestack-use-cases repository, under apps/fs-filesharing. It is a Next.js app with the uploader, the share route and the share page.