code: protected function writeToContainer($type, $path, $payload)
      {
          try {
              $this->container->{'uploadFrom'.$type}($path, $payload);
          } catch (UploadFailedException $e) {
              return false;
          }
  
          return $this->getMetadata($path);
      }
docs: Writes string or stream to container.
  
  @param string          $type    Upload type
  @param string          $path    File path
  @param string|resource $payload String content or Stream resource
  
  @return array|bool