Request/UploadFile.php
public function uploadFromPath($path)
    {
        $file = new FormUpload($path);
        $this->request->setParam('content', $file);
        return $this;
    }
public function uploadFromPath($path)
    {
        $file = new FormUpload($path);
        $this->request->setParam('content', $file);
        return $this;
    }
Pass the file input stream to a record

@param $path - this must be the full path of the file. i.e: /home/path/to/file.extension
@return UploadFile