Back

Uploader

Script v1.0.0 16 min read 21 sections

Free PHP file upload script. Visitors get short share links, and you manage uploads, branding, SEO, ads and settings from one admin panel.

On this page21 sections
  1. Overview
  2. Requirements
  3. Install
  4. After setup
  5. Public site
  6. Admin panel
  7. Files
  8. Site settings
  9. SEO
  10. Upload settings
  11. Admin URL
  12. Account
  13. Ads
  14. Database
  15. HTTPS and Cloudflare
  16. Backup and move
  17. Update
  18. Security
  19. Troubleshooting
  20. Changelog
  21. Need help?

This guide covers installing and running Uploader (version 1.0.0), a free PHP script for your own file upload website, on Apache with PHP 8.2 and MySQL or MariaDB. Use it for your first install and as a reference for every admin screen.

Free to use

Uploader is free to use on your own personal and commercial sites under the Quintaphon Free License. You may change it for your own sites, but you may not share, resell or redistribute it. The Developed by Quintaphon Services credit in the public footer must stay visible. The full text is in LICENSE.txt.

Overview

A visitor uploads a file, receives a short link such as https://example.com/abc12, and anyone with that link can open the file page and download the file.

  • Public pages: upload, file page with a Share menu, Recent, Popular, Privacy, Terms, and DMCA.
  • Admin panel (default path /manage/): Files, plus Settings tabs for Site, SEO, Uploads, Admin URL, Account, Ads, Database, and Update.
  • Look: light and dark mode, seven theme colors, and your own logo.
  • Safety: setup locks itself after install, HTTPS enforcement, upload caps, storage limits, and optional captcha or Google sign-in for the admin.

What ships in the package

  • Public pages, the upload handler, and config.php (shared code) in the site root.
  • assets/ for CSS, JavaScript, and fonts.
  • files/ for stored uploads (empty until someone uploads). Keep this folder.
  • inc/ for shared layout pieces.
  • install/ for first-run setup.
  • manage/ as the default admin folder.
  • .htaccess for short links, error pages, and folder protection.
  • README.txt with a short install checklist, and LICENSE.txt with the license.

The backups/ folder is created the first time you use the Update tab. Setup writes config.local.php in the site folder. It holds the database password and the admin password hash, so it is never in the ZIP and you should never share it.

Requirements

ItemNeeded
PHP8.2 or newer
PHP extensionsmysqli, fileinfo, json, session, dom (for SVG logos), and zip (for the Update tab)
Web serverApache with mod_rewrite and .htaccess allowed (AllowOverride All)
DatabaseMySQL or MariaDB
FoldersThe site folder and files/ writable by PHP
Public hostAn SSL certificate (Let's Encrypt, your panel, or Cloudflare)

PHP also limits upload size. To accept large files, raise upload_max_filesize and post_max_size in PHP to at least the size you set on the Uploads tab. The script default is 256 MB, and it never goes above the PHP limit.

Install

1. Upload the files

Download uploader.zip and unzip it. Upload the contents of the uploader folder to your domain root or a subfolder such as /uploader/. Keep the folder structure as shipped, including the empty files folder.

2. Create a database

Create an empty MySQL or MariaDB database, or use an account that can create one. Note the host (often localhost), database name, username, and password. The database name may only use letters, numbers, and underscores.

3. Turn on HTTPS

Install an SSL certificate, or put the site behind Cloudflare. Setup requires an https:// site URL on a public domain. Plain http:// is only allowed on localhost or a local network.

4. Open setup

Visit your site in a browser. Until setup has run, every page sends you to /install/. Setup checks PHP 8.2+, fileinfo, a writable files/ folder, and a writable site folder. All four must pass before the form shows.

5. Fill the form

FieldWhat to enter
Website titleName shown in the header and page titles. Maximum 80 characters.
Website URLFilled in for you from the address you opened. Public address with no trailing slash, for example https://files.example.com.
Database hostUsually localhost.
Database nameThe database you created. Setup creates it if your user is allowed to.
Table prefixDefault up_. Starts with a letter; letters, numbers, and underscore; up to 16 characters.
Database username / passwordA MySQL login that can use that database.
Admin URL pathDefault manage, which becomes /manage/. Letters, numbers, hyphen, or underscore.
Admin username3 to 40 characters.
Admin passwordAt least 8 characters. Choose a strong one.

Reserved admin paths you cannot use: recent, popular, privacy, tos, dmca, install, files, assets, inc, upload, 404, 403.

6. Finish

After a successful save, open the site and the admin URL shown on the success screen. Setup now locks itself: visiting /install/ shows "Setup is locked" to everyone except a signed-in admin. You can still delete the install folder; it is not needed again.

Running setup again

Sign in to the admin panel first, then open /install/. If setup finds an existing install, tick the confirmation box. That overwrites site and admin settings. Uploaded files and file records stay.

After setup

  • Sign in at /manage/ (or the path you chose).
  • On Account, set the contact email. Password reset, Google sign-in, and the legal pages use it.
  • On Uploads, pick allowed types, the max size, the upload cap, a storage cap, and any blocked words.
  • On Site, add a logo, a theme color, and your time zone.
  • On SEO, write your homepage title and description.
  • On a VPS, make sure PHP can send mail if you want password reset emails.

Public site

Upload

The homepage is the drop zone. Visitors drag files or click Select files, and several files can be queued. Each upload gets its own short link, shown as Open link when it finishes. Rejected uploads show the reason: file type, size, blocked word, upload cap, or no room left on the server.

Uploader upload page screen
The upload page with three finished uploads.

Short links

Each file gets a short code of 5 to 12 characters (5 by default, set on the SEO tab). Visitors use:

  • /abc12 for the file page
  • /abc12/dl to start the download

Downloads support HTTP Range, so download managers can pause and resume. The file is stored on disk under a random name; the original name is used when it downloads. Hidden characters that can disguise a file name (such as right-to-left marks) are removed.

File page

Shows the name, size, type, upload time, download count, and last download. If you turn it on, it also shows the uploader's city. The top of the card has two buttons:

  • Copy link copies the short link.
  • Share opens a menu with WhatsApp, Telegram, Facebook, X (Twitter), LinkedIn, and Copy link.
Uploader file page screen
A file page with the Share menu open.

Recent and Popular

/recent/ lists the latest 50 uploads and /popular/ the 50 most downloaded. You can switch both pages off on the Uploads tab. They then return "page not found" and their links disappear from the menu.

Uploader recent files screen
The Recent page.

Legal pages and theme

The footer links to Privacy, Terms of Service, and DMCA, which use your contact email. The Privacy page updates itself when you change the public lists, the uploader location, or automatic file deletion. The footer also has the light and dark mode switch; each visitor's choice is saved in their browser.

Uploader dark mode screen
A file page in dark mode.

Admin panel

Open https://your-domain.com/manage/ (or your custom path).

  • Username and password that you set during setup or on Account.
  • Forgot password emails a one-hour reset link to the contact email. It needs working PHP mail on the server.
  • Captcha (optional): Google reCAPTCHA v2 or Cloudflare Turnstile, set on Admin URL.
  • Google sign-in (optional): only the Google account whose email matches the contact email can sign in.
Uploader admin login screen
The admin login page.

Failed logins and reset requests are rate limited. A session ends after 2 hours without activity. Changing the password signs out every other browser that was signed in.

Sidebar

  • Files for the upload list.
  • Settings for Site, SEO, Uploads, Admin URL, Account, Ads, Database, and Update.
  • View site opens the public site in a new tab.
  • Log out ends the session.

Files

Lists every upload with name, size, downloads, and upload time, 100 per page, newest first.

  • Click a name to open its public page.
  • Delete on a row removes the file from disk and from the database, after you confirm.
  • Delete selected removes up to 10 ticked files at once.
Uploader files screen
The Files list in the admin panel.

Site settings

Settings → Site

  • Website title and Website URL. A public URL must use https://.
  • Custom logo: JPG, PNG, GIF, WEBP, or SVG, up to 2 MB. SVG logos are cleaned so only plain drawing code is kept.
  • Theme color: Default, Navy, Blue, Green, Orange, Red, or Violet.
  • Time zone: used for every upload and download time on the site. The list is grouped by region and shows each zone's UTC offset.
Uploader site settings screen
Settings, Site tab.

SEO

Settings → SEO

Uploader seo screen
Settings, SEO tab.

Set the title and meta description that search engines and share previews show. Each field counts characters and turns red past what Google usually displays (about 60 for titles and 160 for descriptions).

PageWhat you setPlaceholders
HomepageTitle and description{site}
File pagesTitle and description templates{name}, {ext}, {size}, {site}
Recent and PopularTitle and description for each{site}

For example, the file title Download {name} ({size}) becomes "Download report.zip (2.4 MB)". Leave the file description empty to use the automatic description saved with each upload.

  • Short link length: 5 to 12 characters for new links. Existing links keep working.
  • Hide the whole site from search engines: adds noindex to every page.

Every public page also gets a canonical link and share preview tags for Facebook, X, WhatsApp, and others. The admin, login, and download links are always kept out of search engines.

Upload settings

Settings → Uploads

  • Max file size (MB): capped by the PHP limit shown under the field.
  • Upload cap and Cap period (hours): how many uploads one visitor can make in that many hours. Default 30 per hour; 0 turns the cap off. Uploads that get rejected do not count.
  • Storage cap (GB): new uploads stop once the files folder reaches this size. 0 means no cap. Uploads also stop when the disk has less than 1 GB free. The current usage is shown under the field.
  • Delete files after (days): files nobody has downloaded for this many days are deleted (counted from the upload if never downloaded). 0 keeps files forever.
  • Show the Recent and Popular pages: on by default. Turn it off if uploads should only be found through their links.
  • Show the uploader's city on file pages: off by default. When on, each uploader's IP is looked up at ip-api.com (plain HTTP; their free plan is for non-commercial use), and the Privacy page says so.
  • Allowed file types: archives (ZIP, RAR, 7Z, GZ, BZ2, XZ, TAR), media (MP4, WEBM, MKV, MP3, WAV), apps (APK, EXE), documents (PDF, DOCX, XLSX, PPTX), images (JPG, JPEG, PNG, GIF, WEBP), and text (TXT, CSV). Each upload's real content is checked against its type. Script types such as PHP, HTML, JS, and SVG can never be enabled.
  • Blocked words: one per line or separated by commas, up to 200. Checked in file names and inside TXT and CSV files, ignoring case.
Uploader uploads screen
Settings, Uploads tab: storage cap, automatic deletion, and the public list and location switches.

Admin URL

Settings → Admin URL

Change the admin path, for example from manage to panel. After you save, only the new path opens the admin panel, so bookmark it.

  • Login captcha: None, Google reCAPTCHA v2, or Cloudflare Turnstile. Get keys at Google reCAPTCHA (v2 checkbox) or Cloudflare Turnstile.
  • Google sign-in: create a Web application OAuth client in Google Cloud, add the redirect URI shown on this page, then paste the client ID and secret.

Account

Settings → Account

  • Change the admin username and password. Changing the password signs out other browsers; yours stays signed in.
  • Set the contact email used for password reset, Google sign-in, and the legal pages.

Ads

Settings → Ads

  • Display ads: one switch for every ad on the site. Your ad code stays saved when it is off.
  • ads.txt: saved as a file at the site root. Leave it empty and save to remove it.
  • Header ad, File details ad (above the Download button), and Footer ad. Paste the HTML or script tags from your ad network.
  • Ads table: create or repair the ads table if it is missing.

Ads never show on the upload homepage. Preview them on a file page, Recent, or Popular.

Database

Settings → Database

  • Optimize tables reclaims unused space. Safe to run at any time.
  • Repair tables rebuilds a damaged table.

Both run on the files table and the ads table (with your prefix), after you confirm.

HTTPS and Cloudflare

  • A public site URL must start with https://. http://localhost and local network addresses can stay on HTTP for testing.
  • When the site URL is HTTPS, plain HTTP visits redirect to HTTPS, and the script sends HSTS so browsers keep using HTTPS.
  • Behind Cloudflare or another proxy, the script reads the forwarded HTTPS headers, so you do not need extra redirect rules.
  • Behind Cloudflare, upload caps, login limits, and the uploader location use the visitor's real address from Cloudflare. The script only trusts that header on requests that really come from Cloudflare.

Backup and move

A full backup is the site folder plus a dump of the database (tables use your prefix, default up_).

  • Copy the whole site folder, including files/ and config.local.php.
  • Export the database with phpMyAdmin or mysqldump.
  • To restore, put the folder on the new host, import the dump, and update the database login in config.local.php if it changed. Then sign in and save the new Website URL on Site if the domain or folder changed.

Update

Settings → Update

The page shows the installed version. To update:

  1. Download the latest uploader.zip. Do not unzip it.
  2. In the admin panel open Settings → Update, choose the ZIP, and click Install update.
  3. Confirm. The page reloads with the new version number.

What happens during an update:

  • The ZIP is checked first. It must be an Uploader package of the same or a newer version, and every path in it must stay inside the site folder.
  • Before anything changes, the script checks it can write every file, and stops with the file name if it cannot.
  • A backup of the current script files is saved in backups/.
  • Only the script's own files are replaced. Your config.local.php, uploaded files, logo, ads.txt, custom admin folder, and your own .htaccess rules are never touched.
  • If any file cannot be written, the backup is put back automatically.
  • Database changes in the new version run by themselves on the next page load.
Uploader update screen
Settings, Update tab, with one backup listed.

Backups and going back

The same page lists the last 5 backups with the date and version. Restore puts that version back (after backing up the current one) and Delete removes a backup. Backups hold script files only, not uploads or settings, and cannot be opened from the web.

Updating without the Update tab

If the zip PHP extension is missing or PHP cannot write the script files, update by hand: back up the site folder and database, then upload the new files over the old ones with FTP or your file manager. Do not delete config.local.php, files/, assets/brand/, ads.txt, backups/, or your custom admin folder. Open the site once so any database changes run.

The script only rewrites its own block between # BEGIN Uploader and # END Uploader in the root .htaccess. Keep your own rules outside that block and they survive updates and settings changes.

Security

  • Setup locks itself after install. Only a signed-in admin can run it again.
  • Use a strong admin password and an admin path that is hard to guess.
  • Never share config.local.php. Update backups never include it.
  • files/, inc/, and the settings files cannot be opened from the web. Uploads are stored under random names and only download through their short link.
  • Each upload's extension, opening bytes, and detected type must all match an allowed type.
  • Admin forms are protected against cross-site form posts, and the session cookie is limited to the site's folder.
  • Uploads, logins, and password resets are rate limited.

Troubleshooting

ProblemWhat to check
Setup form does not showAll four checks on /install/ must pass. Fix the PHP version, fileinfo, or folder permissions.
"Setup is locked"The site is already set up. Sign in to the admin panel first, then open /install/.
Cannot connect to the databaseHost, username, and password, and that the user can use that database.
Site URL rejectedUse https:// on a public domain, with no trailing slash.
Short links show 404Turn on mod_rewrite and AllowOverride All for the site folder.
Upload refusedThe message says why: type, size, blocked word, upload cap, or storage. "No room" means the storage cap is reached or the disk is nearly full.
Large file fails with no messageRaise PHP post_max_size and upload_max_filesize, then the max size on Uploads.
Times look wrongPick your time zone on Site.
Recent or Popular shows "page not found"The public lists are off on Uploads.
Signed out unexpectedlySessions end after 2 hours idle, and when the password changes in another browser.
Forgot password email never arrivesPHP mail is not set up on the server.
Google sign-in failsThe redirect URI must match exactly, and the Google account must be the contact email.
Old admin URL shows 404You changed the admin path. Use the new one.
Admin shows "Missing" as the sizeThe file is gone from files/. Delete that row or restore it from a backup.
Cannot save settingsThe site folder must be writable by PHP.
Update says "PHP cannot write" a fileMake the script files writable by the PHP user, or update by hand. Nothing was changed.
Update tab says the zip extension is missingAsk your host to enable the PHP zip extension, or update by hand.
"This is not an Uploader package"Upload the original uploader.zip without unzipping or re-zipping it.

Changelog

1.0.0 (October 23, 2026)

First free release.

  • Setup locks itself after install, and the setup page loads its styles on any domain.
  • New SEO tab: titles and descriptions for every page type, share previews, canonical links, a hide-from-search switch, and short link length.
  • Share menu on file pages (WhatsApp, Telegram, Facebook, X, LinkedIn, Copy link).
  • Storage cap, automatic deletion of old files, and an on/off switch for the Recent and Popular pages.
  • Uploader location is now off by default.
  • New Update tab: install a new version from its ZIP with an automatic backup, rollback on failure, and one-click restore.
  • Time zone setting and a separate Database tab.
  • Correct visitor addresses behind Cloudflare, upload caps that hold under parallel uploads, and cleaned file names.
  • Stronger admin sessions, safer SVG logos, and .htaccess updates that keep your own rules.
  • jQuery 3.7.1 and jQuery File Upload 10.32.0.

Need help?

Read this guide from install through the admin screens first. If something still fails, note the exact address, the message on screen, and your PHP version, then contact us on the support page.