<?php

namespace Internetgalerie\IgDatapoolFe\Controller;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;

class AjaxUploadController extends ActionController
{
    public function ajaxUploadAction()
    {
        $formUtility = GeneralUtility::makeInstance(\Internetgalerie\IgDatapoolFe\Utility\FormUtility::class);
        echo (json_encode($formUtility->handleAjaxUpload()));
        exit(0);
    }
}