I'm trying to follow this link: https://docs.microsoft.com/en-us/rest/api/storageservices/copy-file with examples from this repo: https://github.com/Azure/azure-storage-php/blob/master/samples/FileSamples.php#L235 The file is indeed copied to the azure server but the content aren't readable, to say the least, it takes a size but it's empty. This is only a text file as well, and what I plan to achieve after fixing this is to copy excel files generated via PHP to an azure file storage server.