]> jfr.im git - uguu.git/blobdiff - src/static/php/upload.php
tests
[uguu.git] / src / static / php / upload.php
index 6151e048cc574ebd4f354a4bdf866ddb747ff81e..a2cb5190875e941c272aee1895a0f97905e0adaa 100644 (file)
@@ -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);
 }