symfony - How to directly access an image from web directory using FOSREST -


as service, want access image inside of "web/uploads". when i'm trying that, it's returning:

no route found "get /web/uploads/"

but want access image inside directory. i'm uploading images , need load them externally. light this? thanks.

/web/ directory (public) document root, it's place domain points.

assuming e.g. have virtual host example.lc points /path/to/project/web/, instead of requesting:

http://example.lc/web/uploads

you should try with:

http://example.lc/uploads

when you're trying access:

http://example.lc/web/uploads

webserver looks /path/to/project/web/web/uploads, , since path doesn't exist, rewrites url app.php symfony application entry point.


Comments