Ankush Chauhan Ankush Chauhan - 3 months ago 13
PHP Question

how can i upload the blob in azure using the shared access signature using PHP?

I am using the azure php SDK and I have the SAS signature which I get from the application now how can I upload the file to the blob using the SAS( Shared Access Signature).

Answer

Our PHP tutorial for blobs shows how to create a connection string and then upload a blob.

You can use the SAS as the credentials for your connection string. The connection string format is (line breaks included for readability only):

BlobEndpoint=myBlobEndpoint;
QueueEndpoint=myQueueEndpoint;
TableEndpoint=myTableEndpoint;
FileEndpoint=myFileEndpoint;
SharedAccessSignature=sasToken

Please see Create a connection string using a shared access signature for more information and examples.

Comments