From 3b86191846cd856dbb035a087807c5db4f13d305 Mon Sep 17 00:00:00 2001 From: Abdelhady Muhammad Date: Tue, 9 Apr 2019 14:18:32 +0200 Subject: [PATCH] Warning about forward slash for paths Just adding a warning based on your response to this issue https://github.com/SociallyDev/Spaces-API/issues/6 , I know you probably tried the filter you talked about because I didn't get the exception when using `UploadDirectory()`, but then I got the exception when using `MakePublic()`, so I thought it would be safer for everyone to warn them about that `SignatureDoesNotMatch` exception --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index dabbfe9..45cb090 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ All available options: ### Uploading/Downloading Files ```php +// Don't start any path with a forward slash, or it will give "SignatureDoesNotMatch" exception $path_to_file = "image.png"; $space->UploadFile($path_to_file, "public");