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 is possible use LiiImagineBundle for private image files #1503
Comments
i don't see the access control in this code. if all you need is storing the source images outside of the web root, you can configure a different data root: https://github.com/liip/LiipImagineBundle#data-roots if you have additional logic to verify access, you could inject the filters as service into your controller, as illustrated in https://github.com/liip/LiipImagineBundle#use-as-a-service |
I am trying use this code but this is no ok
|
the github issues are intended to report bugs with the bundle. i am okay to help a bit more than that, but you need to be more specific. at which point do you get an error and what does the error say? when you look at it, it might already give you hints what you can do to solve the problem. note that the intended usage pattern with LiipImagineBundle is to just store the source image file and then configure the filter when requesting the image. if you do that, you need a lot less code in your controller, and uploading the image will not be slowed down by scaling the image to all formats you need. |
In my Symfony application, user can upload images but images are stored in non public directory, in my case I store this in /var/card-upload. For display images in templateI use this controller method with
Now I dont how I can this BinaryFileResponse filter by using LiipImagineBundle. It is posiible?
The text was updated successfully, but these errors were encountered: