apweb/uploadflies

class para uploads de Files

1.0.0 2017-08-14 12:59 UTC

This package is auto-updated.

Last update: 2025-03-15 03:32:11 UTC


README

Classe para carregar files

Scrutinizer Code Quality Build Status

Estatísticas

Total Downloads Daily Downloads Monthly Downloads

Usage

Create an image class that extends the class Uploads

    <form method="post" enctype="multipart/form-data">
        <input type="file" name="archive[]" >
        <input type="submit" value="Upload">
    </form>
if(!empty($_FILES['archive'])) {

	$img = new Uploads();
	$img->file("teste");
}?>

Create an index.php file with the following contents:

define('DS', DIRECTORY_SEPARATOR);

define('PV', 'Image' . DS);

define('DIR_FILE', PV  . DS);