Search code examples
phpsymfonystoragedata-management

Symfony - Manage a big amount of data uploads to server


I'm currently working on a management system for a 50 people agency. Those people needs to upload a huge amount of data to the server (thousands of files, light and heavy ones, can be several gigabytes)

I can upload file to the mail server, but I want to manage those files on a storage server. How could I transfer my files to my storage server and give back storage informations to the web server ? What would be the better solution to manage this kind of storage with a Symfony app ?

Thanks a lot


Solution

  • You can use KnpGaufretteBundle as a filesystem abstraction layer and implement your own custom adapter service to provide methods to communicate with your remote storage.

    # app/config/config.yml
    knp_gaufrette:
        adapters:
            foo:
                service:
                    id:     my.adapter.service