public function file($input = null)
    {
        // The input name must be defined
        if (!isset($input) || !isset($_FILES[$input])) {
            throw new \InvalidArgumentException('Invalid file', 400);
        }

        // Return the file info
        return $_FILES[$input];
    }
public function file($input = null)
    {
        // The input name must be defined
        if (!isset($input) || !isset($_FILES[$input])) {
            throw new \InvalidArgumentException('Invalid file', 400);
        }

        // Return the file info
        return $_FILES[$input];
    }
public function file ( $ input = null ) { // The input name must be defined if ( ! isset ( $ input ) || ! isset ( $ _FILES [ $ input ] ) ) { throw new \ InvalidArgumentException ( 'Invalid file' , 400 ) ; } // Return the file info return $ _FILES [ $ input ] ; }
Gets a request file

@param string $input Input key
@return mixed File info, or false
Gets a request file