/uploadfiles

Classe para carregar files

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

UploadFiles

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);