imagekit-php icon indicating copy to clipboard operation
imagekit-php copied to clipboard

Origin image paths have query parameters

Open erikverheij opened this issue 2 years ago • 2 comments

Hello, we're having a situation where our origin image paths contain query parameters.

Example path: Art_Object_Public/62113000074175459/Main_Image/image-download/4gJsEaRAh9Fv5MyFKrjj61gY6ArujW8u1HMv2pEBeKEbGuWVze6CNWwsQhpKm3ZCRU9dtgd7bjUJTG6G845GfEMVSKEbrvq1hhha/1580100858796_4013071.jpg?someParam=someValue

The resulting url by the PHP SDK now looks like this: https://z-art-img.kunst.nl/Art_Object_Public/62113000074175459/Main_Image/image-download/4gJsEaRAh9Fv5MyFKrjj61gY6ArujW8u1HMv2pEBeKEbGuWVze6CNWwsQhpKm3ZCRU9dtgd7bjUJTG6G845GfEMVSKEbrvq1hhha/1580100858796_4013071.jpg?someParam=someValue?ik-sdk-version=php-1.2.2

There are 2 question marks in the url now. How could we overcome this issue?

erikverheij avatar Aug 19 '22 11:08 erikverheij

path cannot contain query parameters. If that is the case, you can construct the URL in your application and use src parameter.

Example is here - https://github.com/imagekit-developer/imagekit-php#using-full-image-url

imagekitio avatar Aug 22 '22 03:08 imagekitio

Thanks, we'll switch to the src param!

erikverheij avatar Aug 24 '22 09:08 erikverheij