Skip to content

Zebedeu/uploadfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Classe para carregar files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages