Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use downloadObject function #515

Closed
mkalisz77 opened this issue Jan 25, 2016 · 2 comments
Closed

How to use downloadObject function #515

mkalisz77 opened this issue Jan 25, 2016 · 2 comments
Labels

Comments

@mkalisz77
Copy link

Can this function be used to display images using
render(controller(...)) in Twig, when I have only image file name ?

How it can be done ?

My image files are outside web root and I try to display them, is it possible using this function

@zerubeus
Copy link

zerubeus commented Mar 7, 2016

You have to use this function instead

vich_uploader_asset(page, 'imageFile')

@garak
Copy link
Collaborator

garak commented Jan 3, 2017

You need to retrieve your object. Then you can follow docs

@garak garak closed this as completed Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants