protected function writeToContainer($type, $path, $payload)
    {
        try {
            $this->container->{'uploadFrom'.$type}($path, $payload);
        } catch (UploadFailedException $e) {
            return false;
        }

        return $this->getMetadata($path);
    }
protected function writeToContainer($type, $path, $payload)
    {
        try {
            $this->container->{'uploadFrom'.$type}($path, $payload);
        } catch (UploadFailedException $e) {
            return false;
        }

        return $this->getMetadata($path);
    }
protected function writeToContainer ( $ type , $ path , $ payload ) { try { $ this -> container -> { 'uploadFrom' . $ type } ( $ path , $ payload ) ; } catch ( UploadFailedException $ e ) { return false ; } return $ this -> getMetadata ( $ path ) ; }
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
Writes string or stream to container .