Azure blob 存储与 codeigniter3 集成
Azure blob storage integration with codeigniter3
我正在尝试通过 codeigniter3 访问 microsoft azure blob storage
。我从
codeigniter-azure 并遵循了流程。我将库文件夹中的文件复制到我的 application/libraries 文件夹,并且还在 application/config/config.php 文件中添加了 azure account_name,account_key
。
我在控制器中编写了代码。
$this->load->library('azure');
$blob_storage = $this->azure->get_blob_storage();
var_dump($blob_storage -> listBlobs("xxx-container-name-xxx"));
当我执行代码时出现错误 Call to a member function get_blob_storage() on null
。
如果您只想列出容器或某个目录下的 blob,您可以轻松生成一个 SAS token and then use Azure blob rest APIs 来执行此操作。
关于如何生成 SAS 令牌并调用其余的 API,请参阅 。
它不涉及任何其他库我认为它应该是一个解决方法。
我正在尝试通过 codeigniter3 访问 microsoft azure blob storage
。我从
codeigniter-azure 并遵循了流程。我将库文件夹中的文件复制到我的 application/libraries 文件夹,并且还在 application/config/config.php 文件中添加了 azure account_name,account_key
。
我在控制器中编写了代码。
$this->load->library('azure');
$blob_storage = $this->azure->get_blob_storage();
var_dump($blob_storage -> listBlobs("xxx-container-name-xxx"));
当我执行代码时出现错误 Call to a member function get_blob_storage() on null
。
如果您只想列出容器或某个目录下的 blob,您可以轻松生成一个 SAS token and then use Azure blob rest APIs 来执行此操作。
关于如何生成 SAS 令牌并调用其余的 API,请参阅