PHP code example of omarabdulwahhab / filemanager
1. Go to this page and download the library: Download omarabdulwahhab/filemanager 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/ */
omarabdulwahhab / filemanager example snippets
bash
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
->setVisible(true)
->store($request->file("file"))
bash
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
->setVisible(false)
->store($request->file("file"))
bash
/*
* This code returns the name of the stored file.
*/
return FileManager::trigger()
->setVisible(false)
->storeToFileDirectory($request->file("file"),"FirstSubFolder/SecondSubFolder");