This object manages checking/moving uploaded files

uses get an unique file name
uses translate errors
package OWR

 Methods

Constructor Sets $this->_name && $this->_isArray

__construct(string $name, array $args) 
author Pierre-Alain Mignot
access public

Parameters

$name

string

the name of the uploaded file

$args

array

associative array of values used to check uploaded file integrity

Returns the path to uploaded file(s) after having checked/moved it

get() : mixed
author Pierre-Alain Mignot
access public

Returns

mixedstring or array of path to uploaded file(s)

Tries to move the uploaded file if no errors

_move(array $file) : string
author Pierre-Alain Mignot
access protected

Parameters

$file

array

the file to move

Returns

stringthe path to the moved file on success

 Properties

 

associative array of values used to check uploaded file integrity

$_args : array
access protected
 

name of the uploaded file(s)

$_name : string
access protected