Private File Hosting
CheckingOwner · Developer
This is a private file hosting service, Created for my personal use, It is made with PHP, HTML5 and TailwindCSS.
PHPTailwindCSSHTMLCSSJavascript

Uptime
Embed a status badge
[](https://tomdev.xyz/status)<a href="https://tomdev.xyz/status"><img src="https://tomdev.xyz/badge/private-file-hosting.svg" alt="Private File Hosting status"></a>Overview
A small self-hosted file host at cdn.tomdev.xyz for sharing screenshots, images and clips. Files get short random links that embed properly in Discord and on Twitter.
The problem
Public image hosts compress uploads, add ads and give long links. I wanted my own domain, full-quality files and clean embeds when I paste a link.
How it's built
- A password-protected upload endpoint that screenshot tools can post to, returning a short link straight away.
- Every file gets a random 8-character name, so links are short and hard to guess.
- An embed mode returns a viewer page instead of the raw file. It sets Open Graph and Twitter card tags by file type, so images, videos and other files all preview properly.
- Plain PHP with one config file for the domain, upload folder, password and embed mode, so it runs on any basic PHP host.
Architecture
- Uploader
- Server
- Storage
Screenshot tool: Posts the file and password to upload.php and gets a short link back straight away.
Features
- Password-protected uploads
- Short random file names
- Embeds tailored to images, videos and other files
- Viewer page showing file size and upload date
- View and download buttons
- Custom 404 page