phpdistributed-apps

How do I handle file uploading on distributed application?


I have photo uploading functionality in web application using PHP. Which is going to host as distributed application on many servers.

Now, problem is how should I handle that photo uploading functionality so, that photo can be available on all server? My application is in php.


Solution

  • You could use an already existing platform to perform syncing. Most modern OSes support syncing, and you could also use external tools.

    At the OS level:

    Using external tools:

    Using PHP: