code: public function uploadFromPath($path)
      {
          $file = new FormUpload($path);
          $this->request->setParam('content', $file);
          return $this;
      }
docs: 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