Reputation: 11295
My Symfony2 application is hosted in 1 servers app1
and app2
, load balancer routing request to app1/app2
accordings to the load on server.
I'm need store uploaded files only on app1, how I can do this using Symfony UploadedFile()
.
In documentation I don't find any possibility to pass to UploadedFile hostname ?
What is simplest way to store all uploaded file with UploadedFile()
in app1
Upvotes: 0
Views: 104
Reputation: 7902
A solution for this could be to have single place for file uploads on the server that both apps point to. Just have each app link to there.
E.g
app1/src/web/uploads -> /var/uploads
app2/src/web/uploads -> /var/uploads
Upvotes: 1