scipper / formfile
parses the $_FILES array into an object.
1.0.1
2015-10-15 11:18 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2024-12-21 20:13:55 UTC
README
parses the $_FILES array into an object
usage
<?php use scipper\Formfile\Formparser; use scipper\Formfile\FormfileException; $formparser = new Formparser(); $formparser->parse(); foreach($formparser->getFormfiles() as $file) { try { $path = $file->save("/some/where/"); } catch(FormfileException $e) { error_log($e->getMessage()); } }