Problem
Current Glide assisted thumb generation feature exposes the path information of image files.
Explanation
Let's say:
I store my product image files in var/data/product-images (relative to my project directory) and elFinder volume root is set to this path
I have a .jpg file at var/data/product-images/featured/112/main-image.jpg
I set the glideURL option to /product-thumbs (and I implement the correct PSR-7 Glide server there)
This driver generates a url for thumb generation that contains the base path: http://localhost:8080/product-thumbs/var/data/product-images/featured/112/main-image.jpg?ts=1582391716&w=48&h=48&fit=crop ...
The problem is, that the base path information (var/data/product-images) is exposed in the generated thumb URL. ElFinder does not expose this information in URL's (eg. for downloading without the connector).
Solution
The driver should strip the base path from the URL and base path should be set during Glide server configuration.
Problem Current Glide assisted thumb generation feature exposes the path information of image files.
Explanation Let's say:
var/data/product-images
(relative to my project directory) and elFinder volume root is set to this pathvar/data/product-images/featured/112/main-image.jpg
glideURL
option to/product-thumbs
(and I implement the correct PSR-7 Glide server there)This driver generates a
url
for thumb generation that contains the base path:http://localhost:8080/product-thumbs/var/data/product-images/featured/112/main-image.jpg?ts=1582391716&w=48&h=48&fit=crop ...
The problem is, that the base path information (
var/data/product-images
) is exposed in the generated thumb URL. ElFinder does not expose this information in URL's (eg. for downloading without the connector).Solution The driver should strip the base path from the URL and base path should be set during Glide server configuration.