diff --git a/src/ApiClient.php b/src/ApiClient.php index 78a387a3..b2a1f8d8 100644 --- a/src/ApiClient.php +++ b/src/ApiClient.php @@ -144,7 +144,7 @@ public function findAttribute(string $code): ?array */ public function downloadFile(string $code): \SplFileInfo { - $endpoint = sprintf('/api/rest/v1/media-files/%s/download', urlencode($code)); + $endpoint = sprintf('/api/rest/v1/media-files/%s/download', $code); Assert::string($this->accessToken); $headers = ['Authorization' => sprintf('Bearer %s', $this->accessToken)]; $request = new Request('GET', $this->baseUrl . $endpoint, $headers);