File Share

A personal file sharer and URL shortener. Upload anything or paste a long link, and get a short public URL and a QR code. It runs on one Cloudflare Worker with R2 and KV.

The admin page with a Files tab listing an audio clip, a CSV file, a PDF and an image, each with a preview, expiry date, click count and share links
The admin page, on a local test instance with made-up files.
The URL Shortener tab with a form to create a short link and a table of two short links
The URL shortener tab.
A QR code dialogue for a file, with the share link, a Copy link button and a Copy QR button
The QR / Link dialogue for a file.
A QR code dialogue for a short link, with the short URL and copy buttons
The same dialogue for a short link.
A public share page showing an image of a sunset over a harbour under its file name
A public share page for an image.

Why

It started because my wife wanted to share audio recordings of her students with their parents using a QR code. QR codes work best with short URLs, so the URL shortener was the natural next step. I mostly use it for one-off files and for links on stickers and posters. Running it myself keeps the data under my control, and if a link goes stale that is my fault.

What it does

Under the hood

The screenshots are from a local test instance with invented files.