apweb / uploadflies
class para uploads de Files
1.0.0
2017-08-14 12:59 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6.3@dev
This package is auto-updated.
Last update: 2025-03-15 03:32:11 UTC
README
Classe para carregar files
Estatísticas
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);