private function doUpload($src, $originalName)
    {
        $data = $this->buildData($originalName, File::getExtension($originalName, false));
        file_put_contents($data['path'], base64_decode($src));

        $this->application->getEventDispatcher()->dispatch(
            ValidateFileUploadEvent::EVENT_NAME,
            new ValidateFileUploadEvent($data['path'])
        );

        return $data;
    }