jhernandes/php-filemanager

Lib para validar arquivo enviado via POST

v1.0.4 2022-05-20 17:55 UTC

This package is auto-updated.

Last update: 2024-11-20 23:30:19 UTC


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