PHP code example of salamek / nette-files
1. Go to this page and download the library: Download salamek/nette-files 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/ */
salamek / nette-files example snippets
class BasePresenter extends Nette\Application\UI\Presenter {
use Salamek\Files\TImagePipe;
}
/** @var Salamek\Files\FileStorage $fileStorage */
/** @var \SplFileInfo|FileUpload $fileUpload */
$fileStorage->processFile($fileUpload); // Saves file to `dataDir` as %wwwDir%/data/md5sum_of_file.ext