This sample demonstrates making a use of models provided by Microsoft Azure Storage SDK for PHP. Generally, this sample contains two main parts, one demonstrates how to use models during creating options of containers and block blobs, and the other part demonstrates how to use models during getting containers, blobs and their properties and contents.
NoteThis sample contains an Angular SPA as the client part and one PHP script for all the requests from client, for keeping the pure PHP code of usage of models provided by Azure Storage SDK for PHP.
We will follow the steps to create a container, upload a text file to this container devided into several block blobs, then will upload a video file to this container in chunks. After the creation, we can start the other part of trial.
During this step, we will create a trial container, and set the Public Access and custom the metadata via MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions.
During this step, we will upload a markdown text file to the container created preview, set a contentType property and custom the metadata via MicrosoftAzure\Storage\Blob\Models\CreateBlobOptions, and divid the file into several small block blobs for the later trial.
During this step, we will upload a video file to the container created preview. It will be divided into MicrosoftAzure\Storage\Blob\Models\Block, then will be set a contentType property and custom the metadata via MicrosoftAzure\Storage\Blob\Models\CommitBlobBlocksOptions.