PHP Classes

Uploady PHP Upload File to MySQL: Store file upload details in a MySQL database

Recommend this page to a friend!
  Info   Demos   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-03-21 (23 hours ago) RSS 2.0 feedNot enough user ratingsTotal: 169 This week: 2All time: 8,861 This week: 27Up
Version License PHP version Categories
uploady 3.0Custom (specified...5PHP 5, Files and Folders, Content man..., A...
Description 

Author

This package can store file upload details in a MySQL database.

It provides an application with a Web interface that can handle uploading one or more files.

The package can store the uploaded file information in a MySQL database using PDO.

The package can:

- Validate the uploaded files according to criteria of MIME type, extensions, size, forbidden names

- Administration pages to manage the uploaded files

- User registration, authentication with optional 2 factors (2FA), permissions management

- Monetization with AdSense advertising

- Statistic gathering with Google Analytics and display with charts

- Uploaded image file processing

- Password protection of uploaded files

- Deleting files after several days or the number of uploaded files

- Uploaded file user abuse report page

- Social media sharing support for public files

- Customization of pages with given CSS or JavaScript

Innovation Award
PHP Programming Innovation award nominee
May 2023
Number 6
Many sites offer file uploading and sharing services. This kind of site is helpful to many users.

Popular sites may have high hosting costs because they may need servers that can handle high CPU loads and have a lot of disk space.

This package provides a file uploading and sharing service that can generate revenue using Google AdSense advertising that may pay for the hosting costs and even create some profit.

Manuel Lemos
Picture of Faris AL-Otabi
  Performance   Level  
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

 

Instructions

  1. Clone the project and cd into it
git clone https://github.com/farisc0de/Uploady
cd Uploady/

  1. Update config.php with connection string as below
define("DB_HOST", "db");
define("DB_USER", "uploady");
define("DB_PASS", "uploady");
define("DB_NAME", "uploady");

  1. Use the below to build the container and run it
docker-compose up -d

Details

<div align="center"> <img src="https://i.ibb.co/qMSh4gN/UPLOADY-removebg-preview.png" alt="UPLOADY-removebg-preview" border="0"> </div>

![](https://img.shields.io/github/license/farisc0de/Uploady) ![](https://img.shields.io/github/v/release/farisc0de/Uploady) ![](https://img.shields.io/github/repo-size/farisc0de/Uploady) ![](https://img.shields.io/badge/PHP-777BB4?style=for-the-badge&logo=php&logoColor=white) Quality Gate Status

Uploady

Uploady is a Simple File Uploader Script with Multi File Upload Support

It comes with more than 20 features and you can set up it in less than 5 minutes.

The software is written in PHP and uses MySQL as a database.

And it is free and open source.

Features

  1. Simple to use and implement
  2. 4 Protection levels - Mime Type - Extensions - Size - Forbidden names
  3. Out Of The Box Functions
  4. Bootstrap and jQuery over CDN
  5. Multi-File Upload Support
  6. Admin Panel with charts and stats
  7. Drag and Drop Support
  8. Role-based User Management with size limit for each role
  9. Data collection [IP Address, Browser Information, OS, Country]
  10. Image Manipulation
  11. AdSense Support
  12. Google Analytics Support
  13. Pages Management
  14. Multi-Languages Support
  15. Custom CSS and JS support
  16. Custom logo and favicon
  17. Delete files after x days
  18. Delete files after x downloads
  19. Report abuse page
  20. Social media sharing

Screenshots

![](https://i.imgur.com/ropeZWD.png)

![](https://i.imgur.com/fTe1FCZ.png)

Note

Change the permission of everything to 755 chmod 755 -R uploady/

How to Install

  1. Upload all files to your server
  2. Modify config/config.php with your custom info
  3. Change files and folders permission to 775
  4. Run install.php
  5. Enjoy (:

Docker Deployment

  1. Clone the project and cd into it
git clone https://github.com/farisc0de/Uploady
cd Uploady/

  1. Update config.php with connection string as below
define("DB_HOST", "db");
define("DB_USER", "uploady");
define("DB_PASS", "uploady");
define("DB_NAME", "uploady");

  1. Use the below to build the container and run it
docker-compose up -d

Wiki

  1. How to install on a shared hosting
  2. How to install with Docker

API Usage

curl --location 'http://localhost/api/upload' \
--header 'X-API-KEY: IpSznjueHn4vhi0BMhuZJRlk8epZxGJR' \
--form 'file=@"postman-cloud:///1eeafe05-7a96-4b40-9639-6ae17e7155d7"'

Click here for a real demo Uploady.NET

TODO

v4.0
1. Report abuse dashboard
2. PhpFileUpload refactor
3. Upgrade Bootstrap to 5.3.3

License

MIT

Copyright

Developed by Faris AL-Otaibi - 2024


  Uploady DemoExternal page  

Open in a separate window

Screenshots (2)  
  • admin
  • mainwebsite
Videos (1)  
  • Install Uploady v3.0.6.1 using Docker
  Files folder image Files (486)  
File Role Description
Files folder image.github (2 files, 2 directories)
Files folder imageuploady (28 files, 15 directories)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file SECURITY.md Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 98%
Total:169
This week:2
All time:8,861
This week:27Up