Using PHP to connect to Azure blob storage account. Using azure-storage-php ( github )
For the copy i use BlobRestProxy.copyBlob() using the api.
I am able to connect to the azure blob storage. Able to upload, list, delete blob files. But not able to copy the blob file within the same container. Does anyone has an example of how to copy a blob file within php using azure-storage-php or does anyone recognizes the error?
I already tried it with several blob storage account settings (public and not). For authentication i use a Shared Access Signature. The weird thing is that i am able to do alle things like create, read and delete but copy does give the below error. Thanks in advance.
The storage account is new, created at 3-12-2021
Fail:
Code: 409
Value: Public access is not permitted on this storage account.
details (if any): <?xml version="1.0" encoding="utf-8"?><Error><Code>CannotVerifyCopySource</Code><Message>Public access is not permitted on this storage account.
RequestId:4b324b08-b01e-0009-6c1e-1187a1000000
Time:2022-01-24T12:30:35.8956602Z</Message></Error>.
I will add my code soon. Thanks for the reply allready!
source https://stackoverflow.com/questions/71227209/error-409-when-copy-azure-blob-file-within-container-with-php
No comments:
Post a Comment