2017 © Pedro Peláez
 

library uploadia

A flexible PHP file upload library

image

coderatio/uploadia

A flexible PHP file upload library

  • Sunday, July 15, 2018
  • by josiahoyahaya
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Uploadia

A flexible PHP file upload library, (*1)

Download

composer require coderatio/uploadia, (*2)

Or Clone this repo., (*3)

Usage

require 'vendor/autoload.php'; // if you downloaded via composer
// OR
require 'pathtouploadia/src/Uploadia.php';

$uploadia = new Coderatio\Uploadia\Uploadia();
$uploadia->setDir('uploads')
    ->setExtensions(['jpg', 'png', 'jpeg', 'gif'])
    ->setMaxSize(1); // In megabytes. 1MB

// There are several methods to use. e.g $uploadia->allowAllFormats()
// $uploadia->sameName($bool) takes a boolean. e.t.c

if($uploadia->uploadFile('photo') {
     // photo is the file input name.
     // Get the uploaded file name or get error message.

     $uploadia->getUploadName(); // Returns uploaded file name;
     $uploadia->getMessage(); // Returns error messages
}

Contribution

Fork the project and send pull request, email me via josiahoyahaya@gmail.com, find me on Twitter and say something about it anywhere possible., (*4)

Licence

This project is licenced under MIT license., (*5)

The Versions

15/07 2018

dev-master

9999999-dev

A flexible PHP file upload library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Josiah Ovye Yahaya

14/07 2018

v0.1

0.1.0.0

A flexible PHP file upload library

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Josiah Ovye Yahaya