From de592196a05d8e5c3fd6fd0c5f247e3888787b99 Mon Sep 17 00:00:00 2001 From: Luciano Antonio Costa <16106846+la-costa@users.noreply.github.com> Date: Thu, 9 Jun 2022 15:15:20 -0300 Subject: [PATCH] fix example download file File::openBinary already does rawurlencode on parameter --- examples/SharePoint/Files/DownloadFileAsContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SharePoint/Files/DownloadFileAsContent.php b/examples/SharePoint/Files/DownloadFileAsContent.php index ee9e5901..537b2cc2 100644 --- a/examples/SharePoint/Files/DownloadFileAsContent.php +++ b/examples/SharePoint/Files/DownloadFileAsContent.php @@ -8,7 +8,7 @@ $settings = include('../../Settings.php'); require_once '../vendor/autoload.php'; -$sourceFileUrl = rawurlencode("/Shared Documents/SharePoint User Guide.docx"); +$sourceFileUrl = "/Shared Documents/SharePoint User Guide.docx"; $targetPath = "../data/SharePoint User Guide.docx"; $appCreds = new ClientCredential($settings['ClientId'], $settings['ClientSecret']);