无法用PHP上传Azure Blob存储

问题描述

我使用这个official Azure Blob Storage sample file

显示了如何上传HelloWorld.txt。 已成功上传。但是,如果一点改变了,例如从HelloWorld.txt变为Hello.jpg,则会上传0字节文件

我的代码PHPQS.PHP

// Create blob client.
$blobClient = BlobRestProxy::createBlobService($connectionString);

$filetoUpload = "Hello.jpg";

if (!isset($_GET["Cleanup"])) {
    // Create container options object.
    $createContainerOptions = new CreateContainerOptions();

...

}

您能告诉我如何完全上传文件吗?

这是Webbrowser(带有HTML)的输出

enter image description here

Azure控制台是

enter image description here

解决方法

示例项目有问题,这就是为什么它不起作用。 https://github.com/Azure-Samples/storage-blobs-php-quickstart/issues/6