download.php 236 B

12345678
  1. <?php
  2. require_once(__DIR__.'/../vendor/autoload.php');
  3. $dir = __DIR__.'/uploads';
  4. $filePath = $_GET['file'];
  5. //$fileName = end(explode('/',$filePath));
  6. $fileObj = new \Pxlswrite\Pxlswrite(['path'=>$dir]);
  7. $fileObj->download($filePath);