scipper/formfile

parses the $_FILES array into an object.


Keywords
form, files, scipper
License
GPL-3.0

Documentation

formfile

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