You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the documentation found here for image transformations.
When providing a transformation, the URL generated gives a 403 error.
To reproduce, the following is being used: $api->file()->generateSecureUrl('/'.$img->uuid.'/-/preview/150x150/-/enhance/25/-/sharp/');
When viewing the output URL, you can observe extra forward slashes being used in the URL: https://cdn.mysite.com//{UUID}/-/preview/150x150/-/enhance/25/-/sharp//?token=exp={TIMESTAMP}~acl=//{UUID}/-/preview/150x150/-/enhance/25/-/sharp//~hmac={TOKEN}
This also results in a 403 error with the extra sashes(/): $api->file()->generateSecureUrl('/'.$img->uuid.'/');
This returns successful: $api->file()->generateSecureUrl("$img->uuid");
Expected behavior
Expect transformations to work per documentation example: $api->file()->generateSecureUrl('/{uuid}/-/resize/640x/other/transformations/');
Describe the bug
Following the documentation found here for image transformations.
When providing a transformation, the URL generated gives a 403 error.
To reproduce, the following is being used:
$api->file()->generateSecureUrl('/'.$img->uuid.'/-/preview/150x150/-/enhance/25/-/sharp/');
When viewing the output URL, you can observe extra forward slashes being used in the URL:
https://cdn.mysite.com//{UUID}/-/preview/150x150/-/enhance/25/-/sharp//?token=exp={TIMESTAMP}~acl=//{UUID}/-/preview/150x150/-/enhance/25/-/sharp//~hmac={TOKEN}
This also results in a 403 error with the extra sashes(/):
$api->file()->generateSecureUrl('/'.$img->uuid.'/');
This returns successful:
$api->file()->generateSecureUrl("$img->uuid");
Expected behavior
Expect transformations to work per documentation example:
$api->file()->generateSecureUrl('/{uuid}/-/resize/640x/other/transformations/');
Code / screenshots
Examples provided in description above.
Environment
The text was updated successfully, but these errors were encountered: