PHP code example of braesident / filedropper

1. Go to this page and download the library: Download braesident/filedropper 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/ */

    

braesident / filedropper example snippets


$storage = '/imgs/';

$fd = new FileDropper([pdo]);
$fd->store(__DIR__.$storage[, &$name][, $options]);

$response->data->link = $storage.$name;