src/S3/Image.php
public function getFromInput($name = false)
    {
        if ($name) {
            $this->img       = $_FILES[$name];
            $this->handle    = new Upload($this->img);
            $this->_new_name = $this->s3->sanitizeFilename(uniqid("", true) . $this->handle->file_src_name);
        }
    }
public function getFromInput($name = false)
    {
        if ($name) {
            $this->img       = $_FILES[$name];
            $this->handle    = new Upload($this->img);
            $this->_new_name = $this->s3->sanitizeFilename(uniqid("", true) . $this->handle->file_src_name);
        }
    }
public function getFromInput ( $ name = false ) { if ( $ name ) { $ this -> img = $ _FILES [ $ name ] ; $ this -> handle = new Upload ( $ this -> img ) ; $ this -> _new_name = $ this -> s3 -> sanitizeFilename ( uniqid ( "" , true ) . $ this -> handle -> file_src_name ) ; } }
Load an image from a form file input

@param bool $name File input name attribute

@return void -
Load an image from a form file input