jhernandes / php-filemanager
Lib para validar arquivo enviado via POST
v1.0.4
2022-05-20 17:55 UTC
Requires
- php: >=5.4
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^6.0
README
Receive image files and pdf from POST and save on your server
How to install
composer require "jhernandes/php-filemanager"
How to use
<?php require_once 'vendor/autoload.php'; $filemanager = new FileManager(); try { $filemanager->save('file_post_param', './uploads/images', 'new_file_name'); } catch(\Exception $e) { echo $e->getMessage(); }