PHP code example of xakki / file-uploader-symfony

1. Go to this page and download the library: Download xakki/file-uploader-symfony library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xakki / file-uploader-symfony example snippets


return [
    // ...
    Xakki\SymfonyFileUploader\FileUploaderBundle::class => ['all' => true],
];
yaml
# config/routes/file_uploader.yaml
file_uploader:
    resource: '@FileUploaderBundle/config/routes.php'
    prefix: /file-upload
bash
php bin/console assets:install public
bash
php bin/console file-uploader:cleanup          # purge expired trash
php bin/console file-uploader:sync-metadata    # rebuild metadata from stored files