Skip to content

Can't use my own image_uri with download_uri #96

@yvanngn

Description

@yvanngn

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());
}

(

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions