PHP code example of themexpert / react-filemanager-server

1. Go to this page and download the library: Download themexpert/react-filemanager-server 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/ */

    

themexpert / react-filemanager-server example snippets




return [
	'root' => '/public/storage/', //your public upload directory
    'upload' => [
        'allowed_types' => ['image/jpeg',  'image/png']
    ]
];

    (new FileManager(__DIR__ . '/config.php'));
    exit; //just incase someone else tries to send some more data or maybe upto you