X-Git-Url: https://jfr.im/git/uguu.git/blobdiff_plain/e480c0e52fadac2ffac84c751cb7b0f606e93efc..7a464f7d36659608b89a65d6af8ad0a6d645dfe3:/src/static/php/upload.php diff --git a/src/static/php/upload.php b/src/static/php/upload.php index 6151e04..a2cb519 100644 --- a/src/static/php/upload.php +++ b/src/static/php/upload.php @@ -25,9 +25,8 @@ require_once __DIR__ . '/../vendor/autoload.php'; use Pomf\Uguu\UploadGateway; -$Upload = new UploadGateway(); try { - $Upload->handleFile($_GET['output'], $_FILES['files']); + (new UploadGateway())->handleFile($_GET['output'], $_FILES['files']); } catch (Exception $e) { throw new Exception($e->getMessage(), 500); }