scipper/formfile

parses the $_FILES array into an object.

1.0.1 2015-10-15 11:18 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:32:18 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());
  }
}