-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi,
Thanks for the bundle, it works well.
It would be nice to be able to overwrite the dowload_uri option with my own because it depends on the bool dowload_link and is forced to the location of the image
if ($options['download_link'] && $form->getParent()->getData()) {
$view->vars['download_uri'] = $this->storage->resolveUri($form->getParent()->getData(), $form->getName());
}
(
PrestaImageBundle/src/Form/Type/ImageType.php
Lines 104 to 106 in 4a297ff
| if ($options['download_link'] && $form->getParent()->getData()) { | |
| $view->vars['download_uri'] = $this->storage->resolveUri($form->getParent()->getData(), $form->getName()); | |
| } |
The dowload_link seems not necessary too.
Maybe we can add another option image_uri to overwrite the location and let the dowload_uri because they are two differents options to have a behavior close to VichImage.
Thank you
Metadata
Metadata
Assignees
Labels
No labels