File upload handler for the Phalcon Framework.
This package provides a file upload service.
You can use it as follows:
// Assuming uploader is registered in dependency injector.
$this->uploader->add("file", [
"name" => "path/and/name/of/file.ext",
"required" => false,
]);
$result = $this->uploader->save();
if ($result) {
print_r($result);
}
- PHP 7.2 or later.
- Phalcon Framework 4.0 or later.
Install this dependency using composer require basilfx/phalcon-uploader
.
See the LICENSE
file (MIT license).