PHP code example of jinteng / f-storage

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

    

jinteng / f-storage example snippets


use jinteng\filestorage\FStorage;


FStorage::$url = 'http://192.168.1.20/';
FStorage::$appName = 'testapp';
FStorage::$appKey = '1234567890';
FStorage::$appKeyId = 1;


$file = FStorage::uploadFile($_FILES['file']);
var_dump($file);