code: public function upload($path, array $parameters = [], $chunked = false)
      {
          if ($chunked) {
              return $this->uploadMediaChunked($path, $parameters);
          } else {
              return $this->uploadMediaNotChunked($path, $parameters);
          }
      }
docs: Upload media to upload.twitter.com.
  
  @param string $path
  @param array  $parameters
  @param boolean  $chunked
  
  @return array|object